Class: NasaApi::ResponseHandler::NeoBrowse

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 = {}) ⇒ 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

Returns the value of attribute links.



88
89
90
# File 'lib/nasa_api/response_handler.rb', line 88

def links
  @links
end

#near_earth_objectsObject

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

#pageObject

Returns the value of attribute page.



88
89
90
# File 'lib/nasa_api/response_handler.rb', line 88

def page
  @page
end

#responseObject

Returns the value of attribute response.



88
89
90
# File 'lib/nasa_api/response_handler.rb', line 88

def response
  @response
end