Class: Episodic::Platform::HTTPResponse
- Inherits:
-
Object
- Object
- Episodic::Platform::HTTPResponse
- Defined in:
- lib/episodic/platform/response.rb
Overview
The raw response. This contains the response code and body.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#response_code ⇒ Object
readonly
Returns the value of attribute response_code.
Instance Method Summary collapse
-
#initialize(response_code, body) ⇒ HTTPResponse
constructor
Constructor.
Constructor Details
#initialize(response_code, body) ⇒ HTTPResponse
Constructor
Parameters
- response_code<Integer>
-
The code returned from the request
- body<String>
-
The xml of the response
88 89 90 91 |
# File 'lib/episodic/platform/response.rb', line 88 def initialize response_code, body @response_code = response_code @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
78 79 80 |
# File 'lib/episodic/platform/response.rb', line 78 def body @body end |
#response_code ⇒ Object (readonly)
Returns the value of attribute response_code.
78 79 80 |
# File 'lib/episodic/platform/response.rb', line 78 def response_code @response_code end |