Class: Upkey::Helios::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/upkey/helios/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentsObject (readonly)

Returns the value of attribute contents.



6
7
8
# File 'lib/upkey/helios/response.rb', line 6

def contents
  @contents
end

#raw_headersObject (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

#statusObject (readonly)

Returns the value of attribute status.



6
7
8
# File 'lib/upkey/helios/response.rb', line 6

def status
  @status
end