Class: StubResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/brine/test_steps.rb

Direct Known Subclasses

DelayedStubResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStubResponse

Returns a new instance of StubResponse.



14
15
16
17
18
# File 'lib/brine/test_steps.rb', line 14

def initialize
  @body = ''
  @status = 200
  @headers = {}
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



12
13
14
# File 'lib/brine/test_steps.rb', line 12

def body
  @body
end

#headersObject

Returns the value of attribute headers.



12
13
14
# File 'lib/brine/test_steps.rb', line 12

def headers
  @headers
end

#statusObject

Returns the value of attribute status.



12
13
14
# File 'lib/brine/test_steps.rb', line 12

def status
  @status
end