Class: Rubydmmd::Response
- Inherits:
-
Object
- Object
- Rubydmmd::Response
- Defined in:
- lib/rubydmmd/response.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(faraday_response) ⇒ Response
constructor
A new instance of Response.
- #result ⇒ Object
Constructor Details
#initialize(faraday_response) ⇒ Response
Returns a new instance of Response.
5 6 7 |
# File 'lib/rubydmmd/response.rb', line 5 def initialize(faraday_response) @response = faraday_response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/rubydmmd/response.rb', line 9 def response @response end |
Instance Method Details
#result ⇒ Object
11 12 13 14 |
# File 'lib/rubydmmd/response.rb', line 11 def result body = response.body.deep_symbolize_keys body[:result] end |