Class: Upkey::Helios::Response
- Inherits:
-
Object
- Object
- Upkey::Helios::Response
- Defined in:
- lib/upkey/helios/response.rb
Instance Attribute Summary collapse
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
-
#raw_headers ⇒ Object
readonly
Returns the value of attribute raw_headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(args = {}) ⇒ Response
Returns a new instance of Response.
8 9 10 11 12 |
# File 'lib/upkey/helios/response.rb', line 8 def initialize(args = {}) @status = args[:status] @raw_headers = args[:headers] @contents = parsed_contents(args[:contents], args[:error]) end |
Instance Attribute Details
#contents ⇒ Object (readonly)
Returns the value of attribute contents.
6 7 8 |
# File 'lib/upkey/helios/response.rb', line 6 def contents @contents end |
#raw_headers ⇒ Object (readonly)
Returns the value of attribute raw_headers.
6 7 8 |
# File 'lib/upkey/helios/response.rb', line 6 def raw_headers @raw_headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/upkey/helios/response.rb', line 6 def status @status end |