Class: EDH::HTTPService::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/edh/http_service/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, body, headers) ⇒ Response

Creates a new Response object, which standardizes the response received by Passport for use within EDH.



7
8
9
10
11
# File 'lib/edh/http_service/response.rb', line 7

def initialize(status, body, headers)
  @status = status
  @body = body
  @headers = headers
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'lib/edh/http_service/response.rb', line 4

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



4
5
6
# File 'lib/edh/http_service/response.rb', line 4

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/edh/http_service/response.rb', line 4

def status
  @status
end