Class: NasaApi::ResponseHandler::NeoFeed
- Inherits:
-
Object
- Object
- NasaApi::ResponseHandler::NeoFeed
- Defined in:
- lib/nasa_api/response_handler.rb
Instance Attribute Summary collapse
-
#element_count ⇒ Object
Returns the value of attribute element_count.
-
#links ⇒ Object
Returns the value of attribute links.
-
#near_earth_objects ⇒ Object
Returns the value of attribute near_earth_objects.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response = {}) ⇒ NeoFeed
constructor
A new instance of NeoFeed.
Constructor Details
#initialize(response = {}) ⇒ NeoFeed
Returns a new instance of NeoFeed.
79 80 81 82 83 84 |
# File 'lib/nasa_api/response_handler.rb', line 79 def initialize(response = {}) @response = response @links = response['links'] @element_count = response['element_count'] @near_earth_objects = response['near_earth_objects'] end |
Instance Attribute Details
#element_count ⇒ Object
Returns the value of attribute element_count.
77 78 79 |
# File 'lib/nasa_api/response_handler.rb', line 77 def element_count @element_count end |
#links ⇒ Object
Returns the value of attribute links.
77 78 79 |
# File 'lib/nasa_api/response_handler.rb', line 77 def links @links end |
#near_earth_objects ⇒ Object
Returns the value of attribute near_earth_objects.
77 78 79 |
# File 'lib/nasa_api/response_handler.rb', line 77 def near_earth_objects @near_earth_objects end |
#response ⇒ Object
Returns the value of attribute response.
77 78 79 |
# File 'lib/nasa_api/response_handler.rb', line 77 def response @response end |