Class: NasaApi::ResponseHandler::NeoBrowse
- Inherits:
-
Object
- Object
- NasaApi::ResponseHandler::NeoBrowse
- Defined in:
- lib/nasa_api/response_handler.rb
Instance Attribute Summary collapse
-
#links ⇒ Object
Returns the value of attribute links.
-
#near_earth_objects ⇒ Object
Returns the value of attribute near_earth_objects.
-
#page ⇒ Object
Returns the value of attribute page.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response = {}) ⇒ NeoBrowse
constructor
A new instance of NeoBrowse.
Constructor Details
#initialize(response = {}) ⇒ NeoBrowse
Returns a new instance of NeoBrowse.
90 91 92 93 94 95 |
# File 'lib/nasa_api/response_handler.rb', line 90 def initialize(response = {}) @response = response @links = response['links'] @page = response['page'] @near_earth_objects = response['near_earth_objects'] end |
Instance Attribute Details
#links ⇒ Object
Returns the value of attribute links.
88 89 90 |
# File 'lib/nasa_api/response_handler.rb', line 88 def links @links end |
#near_earth_objects ⇒ Object
Returns the value of attribute near_earth_objects.
88 89 90 |
# File 'lib/nasa_api/response_handler.rb', line 88 def near_earth_objects @near_earth_objects end |
#page ⇒ Object
Returns the value of attribute page.
88 89 90 |
# File 'lib/nasa_api/response_handler.rb', line 88 def page @page end |
#response ⇒ Object
Returns the value of attribute response.
88 89 90 |
# File 'lib/nasa_api/response_handler.rb', line 88 def response @response end |