Class: JsonRigs::Fixture

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

Direct Known Subclasses

DynamicFixture

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pause_timeObject

Returns the value of attribute pause_time.



4
5
6
# File 'lib/json-rigs/fixture.rb', line 4

def pause_time
  @pause_time
end

#responseObject (readonly)

Returns the value of attribute response.



5
6
7
# File 'lib/json-rigs/fixture.rb', line 5

def response
  @response
end

Instance Method Details

#respond_with(response) ⇒ Object



7
8
9
10
# File 'lib/json-rigs/fixture.rb', line 7

def respond_with response
  JSON.parse(response)
  @response = response
end