Class: USNO::Transit::WorldWideRequest
- Inherits:
-
PayDirt::Base
- Object
- PayDirt::Base
- USNO::Transit::WorldWideRequest
- Includes:
- Request
- Defined in:
- lib/usno/transit/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.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/usno/transit/worldwide_request.rb', line 9 def initialize( = {}) = { uri: URI.parse("http://aa.usno.navy.mil/cgi-bin/aa_mrst2.pl"), z_meters: 0, days: 5, date: Time.now, lat_minutes: 0, lat_seconds: 0, long_minutes: 0, long_seconds: 0 }.merge() (:long, :lat, :days, :date, :object, ) end |
Instance Method Details
#call ⇒ Object
22 23 24 |
# File 'lib/usno/transit/worldwide_request.rb', line 22 def call return result(true, request_response.body) end |