Module: Zodiacly::Horizons

Defined in:
lib/zodiacly/horizons_client.rb

Overview

Convenience module wrapper, as requested: Zodiacly::Horizons.fetch(...)

Class Method Summary collapse

Class Method Details

.client ⇒ Object



68
69
70
# File 'lib/zodiacly/horizons_client.rb', line 68

def client
  @client ||= HorizonsClient.new
end

.fetch(params) ⇒ Object



72
73
74
# File 'lib/zodiacly/horizons_client.rb', line 72

def fetch(params)
  client.fetch(params)
end

.vectors(command:, center:, time_utc:) ⇒ Object



76
77
78
# File 'lib/zodiacly/horizons_client.rb', line 76

def vectors(command:, center:, time_utc:)
  client.vectors(command: command, center: center, time_utc: time_utc)
end