Class: HTTPSpec::Request
- Inherits:
-
Struct
- Object
- Struct
- HTTPSpec::Request
- Defined in:
- lib/http_spec/types.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
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
2 3 4 |
# File 'lib/http_spec/types.rb', line 2 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
2 3 4 |
# File 'lib/http_spec/types.rb', line 2 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method
2 3 4 |
# File 'lib/http_spec/types.rb', line 2 def method @method end |
#path ⇒ Object
Returns the value of attribute path
2 3 4 |
# File 'lib/http_spec/types.rb', line 2 def path @path end |
Instance Method Details
#dup ⇒ Object
3 4 5 |
# File 'lib/http_spec/types.rb', line 3 def dup Request.new(method, path.dup, body, headers) end |