Class: NasaApi::ResponseHandler::MarsPhotos

Inherits:
Object
  • Object
show all
Defined in:
lib/nasa_api/response_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#photosObject

Returns the value of attribute photos.



160
161
162
# File 'lib/nasa_api/response_handler.rb', line 160

def photos
  @photos
end

#responseObject

Returns the value of attribute response.



160
161
162
# File 'lib/nasa_api/response_handler.rb', line 160

def response
  @response
end