Class: NasaApi::ResponseHandler::MarsPhotos
- Inherits:
-
Object
- Object
- NasaApi::ResponseHandler::MarsPhotos
- Defined in:
- lib/nasa_api/response_handler.rb
Instance Attribute Summary collapse
-
#photos ⇒ Object
Returns the value of attribute photos.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response = {}) ⇒ MarsPhotos
constructor
A new instance of MarsPhotos.
Constructor Details
#initialize(response = {}) ⇒ MarsPhotos
Returns a new instance of MarsPhotos.
162 163 164 165 |
# File 'lib/nasa_api/response_handler.rb', line 162 def initialize(response = {}) @response = response @photos = response['photos'] end |
Instance Attribute Details
#photos ⇒ Object
Returns the value of attribute photos.
160 161 162 |
# File 'lib/nasa_api/response_handler.rb', line 160 def photos @photos end |
#response ⇒ Object
Returns the value of attribute response.
160 161 162 |
# File 'lib/nasa_api/response_handler.rb', line 160 def response @response end |