Class: Smartbill::Sdk::Response
- Inherits:
-
Struct
- Object
- Struct
- Smartbill::Sdk::Response
- Defined in:
- lib/smartbill/sdk/response.rb
Overview
A simple HTTP response value object returned by adapters.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#body Raw response body (String, possibly binary).(Rawresponsebody(String, possibly binary)) ⇒ Object
readonly
A simple HTTP response value object returned by adapters.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#content_type Value of the +Content-Type+ header.(Valueofthe+Content-Type+header.) ⇒ Object
readonly
A simple HTTP response value object returned by adapters.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status HTTP status code (Integer).(HTTPstatuscode(Integer)) ⇒ Object
readonly
A simple HTTP response value object returned by adapters.
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
10 11 12 |
# File 'lib/smartbill/sdk/response.rb', line 10 def body @body end |
#body Raw response body (String, possibly binary).(Rawresponsebody(String, possibly binary)) ⇒ Object (readonly)
A simple HTTP response value object returned by adapters.
10 |
# File 'lib/smartbill/sdk/response.rb', line 10 Response = Struct.new(:status, :body, :content_type, keyword_init: true) |
#content_type ⇒ Object
Returns the value of attribute content_type
10 11 12 |
# File 'lib/smartbill/sdk/response.rb', line 10 def content_type @content_type end |
#content_type Value of the +Content-Type+ header.(Valueofthe+Content-Type+header.) ⇒ Object (readonly)
A simple HTTP response value object returned by adapters.
10 |
# File 'lib/smartbill/sdk/response.rb', line 10 Response = Struct.new(:status, :body, :content_type, keyword_init: true) |
#status ⇒ Object
Returns the value of attribute status
10 11 12 |
# File 'lib/smartbill/sdk/response.rb', line 10 def status @status end |
#status HTTP status code (Integer).(HTTPstatuscode(Integer)) ⇒ Object (readonly)
A simple HTTP response value object returned by adapters.
10 |
# File 'lib/smartbill/sdk/response.rb', line 10 Response = Struct.new(:status, :body, :content_type, keyword_init: true) |