Class: CityGrid::API::Response
- Inherits:
-
CityGrid::Abstraction::SuperHash
- Object
- Hash
- CityGrid::Abstraction::SuperHash
- CityGrid::API::Response
- Defined in:
- lib/citygrid/api/response.rb
Overview
Creates SuperHash from parsed_response Stores response object in @response. ———————————— #
Instance Attribute Summary collapse
-
#httparty ⇒ Object
readonly
Returns the value of attribute httparty.
Class Method Summary collapse
Methods inherited from CityGrid::Abstraction::SuperHash
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CityGrid::Abstraction::SuperHash
Instance Attribute Details
#httparty ⇒ Object (readonly)
Returns the value of attribute httparty.
7 8 9 |
# File 'lib/citygrid/api/response.rb', line 7 def httparty @httparty end |
Class Method Details
.new(httparty_response) ⇒ Object
9 10 11 12 13 |
# File 'lib/citygrid/api/response.rb', line 9 def self.new httparty_response resp = super httparty_response.parsed_response resp.instance_variable_set "@httparty", httparty_response resp end |