Class: Flowthings::PlatformResponse
- Inherits:
-
Object
- Object
- Flowthings::PlatformResponse
- Defined in:
- lib/flowthings/response/platform_response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#excon_object ⇒ Object
readonly
Returns the value of attribute excon_object.
-
#full_message ⇒ Object
readonly
Returns the value of attribute full_message.
-
#head ⇒ Object
readonly
Returns the value of attribute head.
-
#response_headers ⇒ Object
readonly
Returns the value of attribute response_headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(response) ⇒ PlatformResponse
constructor
A new instance of PlatformResponse.
Constructor Details
#initialize(response) ⇒ PlatformResponse
Returns a new instance of PlatformResponse.
5 6 7 8 9 10 11 12 13 |
# File 'lib/flowthings/response/platform_response.rb', line 5 def initialize(response) @excon_object = response @status = response.status @response_headers = response.headers @full_message = response.body @head = @full_message["head"] @body = @full_message["body"] @errors = @head["errors"] end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/flowthings/response/platform_response.rb', line 3 def body @body end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
3 4 5 |
# File 'lib/flowthings/response/platform_response.rb', line 3 def errors @errors end |
#excon_object ⇒ Object (readonly)
Returns the value of attribute excon_object.
3 4 5 |
# File 'lib/flowthings/response/platform_response.rb', line 3 def excon_object @excon_object end |
#full_message ⇒ Object (readonly)
Returns the value of attribute full_message.
3 4 5 |
# File 'lib/flowthings/response/platform_response.rb', line 3 def @full_message end |
#head ⇒ Object (readonly)
Returns the value of attribute head.
3 4 5 |
# File 'lib/flowthings/response/platform_response.rb', line 3 def head @head end |
#response_headers ⇒ Object (readonly)
Returns the value of attribute response_headers.
3 4 5 |
# File 'lib/flowthings/response/platform_response.rb', line 3 def response_headers @response_headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/flowthings/response/platform_response.rb', line 3 def status @status end |