Class: NasaApi::ResponseHandler::EarthImagery
- Inherits:
-
Object
- Object
- NasaApi::ResponseHandler::EarthImagery
- Defined in:
- lib/nasa_api/response_handler.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(response_head) ⇒ EarthImagery
constructor
A new instance of EarthImagery.
Constructor Details
#initialize(response_head) ⇒ EarthImagery
Returns a new instance of EarthImagery.
37 38 39 40 |
# File 'lib/nasa_api/response_handler.rb', line 37 def initialize(response_head) @response = response_head @url = response_head.request.last_uri.to_s end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
35 36 37 |
# File 'lib/nasa_api/response_handler.rb', line 35 def response @response end |
#url ⇒ Object
Returns the value of attribute url.
35 36 37 |
# File 'lib/nasa_api/response_handler.rb', line 35 def url @url end |