Class: NasaApi::ResponseHandler::EarthAssets
- Inherits:
-
Object
- Object
- NasaApi::ResponseHandler::EarthAssets
- Defined in:
- lib/nasa_api/response_handler.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#resource ⇒ Object
Returns the value of attribute resource.
-
#response ⇒ Object
Returns the value of attribute response.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(response = {}) ⇒ EarthAssets
constructor
A new instance of EarthAssets.
Constructor Details
#initialize(response = {}) ⇒ EarthAssets
Returns a new instance of EarthAssets.
46 47 48 49 50 51 52 53 |
# File 'lib/nasa_api/response_handler.rb', line 46 def initialize(response = {}) @response = response @url = response['head'] @date = response['date'] @id = response['id'] @resource = response['resource'] @service_version = response['service_version'] end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
44 45 46 |
# File 'lib/nasa_api/response_handler.rb', line 44 def date @date end |
#id ⇒ Object
Returns the value of attribute id.
44 45 46 |
# File 'lib/nasa_api/response_handler.rb', line 44 def id @id end |
#resource ⇒ Object
Returns the value of attribute resource.
44 45 46 |
# File 'lib/nasa_api/response_handler.rb', line 44 def resource @resource end |
#response ⇒ Object
Returns the value of attribute response.
44 45 46 |
# File 'lib/nasa_api/response_handler.rb', line 44 def response @response end |
#url ⇒ Object
Returns the value of attribute url.
44 45 46 |
# File 'lib/nasa_api/response_handler.rb', line 44 def url @url end |