Class: Smartbill::Sdk::Transport::Request
- Inherits:
-
Struct
- Object
- Struct
- Smartbill::Sdk::Transport::Request
- Defined in:
- lib/smartbill/sdk/transport/request.rb
Overview
A request value object built by build_request and sent by an adapter.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#body Serialized request body (may be nil).(Serializedrequestbody(may be nil)) ⇒ Object
readonly
A request value object built by build_request and sent by an adapter.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#headers Hash of HTTP headers.(HashofHTTPheaders.) ⇒ Object
readonly
A request value object built by build_request and sent by an adapter.
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#http_method HTTP method ("GET", "POST", ...).(HTTPmethod("GET", "POST", ...)) ⇒ Object
readonly
A request value object built by build_request and sent by an adapter.
-
#query ⇒ Object
Returns the value of attribute query.
-
#query Hash of query parameters (may be nil).(Hashofqueryparameters(may be nil)) ⇒ Object
readonly
A request value object built by build_request and sent by an adapter.
-
#url ⇒ Object
Returns the value of attribute url.
-
#url Full URL (without query string).(FullURL(without query string)) ⇒ Object
readonly
A request value object built by build_request and sent by an adapter.
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
14 15 16 |
# File 'lib/smartbill/sdk/transport/request.rb', line 14 def body @body end |
#body Serialized request body (may be nil).(Serializedrequestbody(may be nil)) ⇒ Object (readonly)
A request value object built by Smartbill::Sdk::Transport.build_request and sent by an adapter.
14 |
# File 'lib/smartbill/sdk/transport/request.rb', line 14 Request = Struct.new(:http_method, :url, :headers, :query, :body, keyword_init: true) |
#headers ⇒ Object
Returns the value of attribute headers
14 15 16 |
# File 'lib/smartbill/sdk/transport/request.rb', line 14 def headers @headers end |
#headers Hash of HTTP headers.(HashofHTTPheaders.) ⇒ Object (readonly)
A request value object built by Smartbill::Sdk::Transport.build_request and sent by an adapter.
14 |
# File 'lib/smartbill/sdk/transport/request.rb', line 14 Request = Struct.new(:http_method, :url, :headers, :query, :body, keyword_init: true) |
#http_method ⇒ Object
Returns the value of attribute http_method
14 15 16 |
# File 'lib/smartbill/sdk/transport/request.rb', line 14 def http_method @http_method end |
#http_method HTTP method ("GET", "POST", ...).(HTTPmethod("GET", "POST", ...)) ⇒ Object (readonly)
A request value object built by Smartbill::Sdk::Transport.build_request and sent by an adapter.
14 |
# File 'lib/smartbill/sdk/transport/request.rb', line 14 Request = Struct.new(:http_method, :url, :headers, :query, :body, keyword_init: true) |
#query ⇒ Object
Returns the value of attribute query
14 15 16 |
# File 'lib/smartbill/sdk/transport/request.rb', line 14 def query @query end |
#query Hash of query parameters (may be nil).(Hashofqueryparameters(may be nil)) ⇒ Object (readonly)
A request value object built by Smartbill::Sdk::Transport.build_request and sent by an adapter.
14 |
# File 'lib/smartbill/sdk/transport/request.rb', line 14 Request = Struct.new(:http_method, :url, :headers, :query, :body, keyword_init: true) |
#url ⇒ Object
Returns the value of attribute url
14 15 16 |
# File 'lib/smartbill/sdk/transport/request.rb', line 14 def url @url end |
#url Full URL (without query string).(FullURL(without query string)) ⇒ Object (readonly)
A request value object built by Smartbill::Sdk::Transport.build_request and sent by an adapter.
14 |
# File 'lib/smartbill/sdk/transport/request.rb', line 14 Request = Struct.new(:http_method, :url, :headers, :query, :body, keyword_init: true) |