Class: USNO::Eclipse::Lunar::WorldWideRequest
- Inherits:
-
PayDirt::Base
- Object
- PayDirt::Base
- USNO::Eclipse::Lunar::WorldWideRequest
- Includes:
- Request
- Defined in:
- lib/usno/eclipse/lunar/worldwide_request.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options = {}) ⇒ WorldWideRequest
constructor
A new instance of WorldWideRequest.
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( = {}) = { z_meters: 0, }.merge() (:long, :lat, :date, ) and validate_state end |
Instance Method Details
#call ⇒ Object
19 20 21 |
# File 'lib/usno/eclipse/lunar/worldwide_request.rb', line 19 def call return result(true, request_response.body) end |