Class: Restspec::Endpoints::Request
- Inherits:
-
Struct
- Object
- Struct
- Restspec::Endpoints::Request
- Defined in:
- lib/restspec/endpoints/request.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#method ⇒ Object
Returns the value of attribute method.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint.
4 5 6 |
# File 'lib/restspec/endpoints/request.rb', line 4 def endpoint @endpoint end |
#headers ⇒ Object
Returns the value of attribute headers
3 4 5 |
# File 'lib/restspec/endpoints/request.rb', line 3 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method
3 4 5 |
# File 'lib/restspec/endpoints/request.rb', line 3 def method @method end |
#payload ⇒ Object
Returns the value of attribute payload
3 4 5 |
# File 'lib/restspec/endpoints/request.rb', line 3 def payload @payload end |
#url ⇒ Object
Returns the value of attribute url
3 4 5 |
# File 'lib/restspec/endpoints/request.rb', line 3 def url @url end |
Instance Method Details
#raw_payload ⇒ Object
6 7 8 |
# File 'lib/restspec/endpoints/request.rb', line 6 def raw_payload @raw_payload ||= (payload || '').to_json end |