Class: Smartbill::Sdk::Transport::Request

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of 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)

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of 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_methodObject

Returns the value of attribute http_method

Returns:

  • (Object)

    the current value of 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)

#queryObject

Returns the value of attribute query

Returns:

  • (Object)

    the current value of 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)

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of 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)