Class: EDH::HTTPService::Response
- Inherits:
-
Object
- Object
- EDH::HTTPService::Response
- Defined in:
- lib/edh/http_service/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body, headers) ⇒ Response
constructor
Creates a new Response object, which standardizes the response received by Passport for use within EDH.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/edh/http_service/response.rb', line 4 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
4 5 6 |
# File 'lib/edh/http_service/response.rb', line 4 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/edh/http_service/response.rb', line 4 def status @status end |