Class: StubRequest
- Inherits:
-
Object
- Object
- StubRequest
- Defined in:
- lib/brine/test_steps.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#method ⇒ Object
Returns the value of attribute method.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize ⇒ StubRequest
constructor
A new instance of StubRequest.
Constructor Details
#initialize ⇒ StubRequest
Returns a new instance of StubRequest.
37 38 39 |
# File 'lib/brine/test_steps.rb', line 37 def initialize @headers = {} end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
35 36 37 |
# File 'lib/brine/test_steps.rb', line 35 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
35 36 37 |
# File 'lib/brine/test_steps.rb', line 35 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method.
35 36 37 |
# File 'lib/brine/test_steps.rb', line 35 def method @method end |
#path ⇒ Object
Returns the value of attribute path.
35 36 37 |
# File 'lib/brine/test_steps.rb', line 35 def path @path end |