class NasaApi::ResponseHandler::NeoLookup

Attributes

absolute_magnitude_h[RW]
close_approach_data[RW]
designation[RW]
estimated_diameter[RW]
id[RW]
is_potentially_hazardous_asteroid[RW]
is_sentry_object[RW]
name[RW]
nasa_jpl_url[RW]
neo_reference_id[RW]
orbital_data[RW]
response[RW]

Public Class Methods

new(response = {}) click to toggle source
# File lib/nasa_api/response_handler.rb, line 59
def initialize(response = {})
  @response = response
  @links = response['links']
  @id = response['id']
  @neo_reference_id = response['neo_reference_id']
  @name = response['name']
  @designation = response['designation']
  @nasa_jpl_url = response['nasa_jpl_url']
  @absolute_magnitude_h = response['absolute_magnitude_h']
  @estimated_diameter = response['estimated_diameter']
  @is_potentially_hazardous_asteroid = response['is_potentially_hazardous_asteroid']
  @close_approach_data = response['close_approach_data']
  @orbital_data = response['orbital_data']
  @is_sentry_object = response['is_sentry_object']
end