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
permalink #initialize ⇒ StubResponse
Returns a new instance of StubResponse.
15 16 17 18 19 |
# File 'lib/brine/test_steps.rb', line 15 def initialize @body = '' @status = 200 @headers = {} end |
Instance Attribute Details
permalink #body ⇒ Object
Returns the value of attribute body.
13 14 15 |
# File 'lib/brine/test_steps.rb', line 13 def body @body end |
permalink #headers ⇒ Object
Returns the value of attribute headers.
13 14 15 |
# File 'lib/brine/test_steps.rb', line 13 def headers @headers end |
permalink #status ⇒ Object
Returns the value of attribute status.
13 14 15 |
# File 'lib/brine/test_steps.rb', line 13 def status @status end |