Class: NasaApi::ResponseHandler::EarthImagery

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_head) ⇒ EarthImagery

Returns a new instance of EarthImagery.



37
38
39
40
# File 'lib/nasa_api/response_handler.rb', line 37

def initialize(response_head)
  @response = response_head
  @url = response_head.request.last_uri.to_s
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



35
36
37
# File 'lib/nasa_api/response_handler.rb', line 35

def response
  @response
end

#urlObject

Returns the value of attribute url.



35
36
37
# File 'lib/nasa_api/response_handler.rb', line 35

def url
  @url
end