Class: USNO::Eclipse::Lunar::WorldWideRequest

Inherits:
PayDirt::Base
  • Object
show all
Includes:
Request
Defined in:
lib/usno/eclipse/lunar/worldwide_request.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ WorldWideRequest

Returns a new instance of WorldWideRequest.



10
11
12
13
14
15
16
17
# File 'lib/usno/eclipse/lunar/worldwide_request.rb', line 10

def initialize(options = {})
  options = {
    z_meters:    0,
  }.merge(options)


  load_options(:long, :lat, :date, options) and validate_state
end

Instance Method Details

#callObject



19
20
21
# File 'lib/usno/eclipse/lunar/worldwide_request.rb', line 19

def call
  return result(true, request_response.body)
end