Class: StubResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStubResponse

Returns a new instance of StubResponse.



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

def initialize
  @body = ''
  @status = 200
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



9
10
11
# File 'lib/brine/test_steps.rb', line 9

def body
  @body
end

#statusObject

Returns the value of attribute status.



9
10
11
# File 'lib/brine/test_steps.rb', line 9

def status
  @status
end