Class: StubResponse
- Inherits:
-
Object
- Object
- StubResponse
- Defined in:
- lib/brine/test_steps.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#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.
14 15 16 17 18 |
# File 'lib/brine/test_steps.rb', line 14 def initialize @body = '' @status = 200 @headers = {} end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
12 13 14 |
# File 'lib/brine/test_steps.rb', line 12 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
12 13 14 |
# File 'lib/brine/test_steps.rb', line 12 def headers @headers end |
#status ⇒ Object
Returns the value of attribute status.
12 13 14 |
# File 'lib/brine/test_steps.rb', line 12 def status @status end |