Class: StubResponse
- Inherits:
-
Object
- Object
- StubResponse
- Defined in:
- lib/brine/test_steps.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize ⇒ StubResponse
constructor
A new instance of StubResponse.
Constructor Details
#initialize ⇒ StubResponse
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
#body ⇒ Object
Returns the value of attribute body.
9 10 11 |
# File 'lib/brine/test_steps.rb', line 9 def body @body end |
#status ⇒ Object
Returns the value of attribute status.
9 10 11 |
# File 'lib/brine/test_steps.rb', line 9 def status @status end |