Class: RightScale::Response

Inherits:
Object show all
Defined in:
lib/right_agent/http_exceptions.rb

Overview

Container for response so that access response headers in same fashion as RestClient

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(headers) ⇒ Response

Returns a new instance of Response.



11
12
13
# File 'lib/right_agent/http_exceptions.rb', line 11

def initialize(headers)
  @headers = headers
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



9
10
11
# File 'lib/right_agent/http_exceptions.rb', line 9

def headers
  @headers
end