Class: JsonRigs::DynamicFixture

Inherits:
Fixture
  • Object
show all
Defined in:
lib/json-rigs/fixture.rb

Instance Attribute Summary collapse

Attributes inherited from Fixture

#pause_time, #response

Instance Method Summary collapse

Methods inherited from Fixture

#respond_with

Instance Attribute Details

#dynamic_responseObject

Returns the value of attribute dynamic_response.


16
17
18
# File 'lib/json-rigs/fixture.rb', line 16

def dynamic_response
  @dynamic_response
end

Instance Method Details

#respond_to(params) ⇒ Object


18
19
20
# File 'lib/json-rigs/fixture.rb', line 18

def respond_to params
  @dynamic_response.call(params)
end