Class: AstroInsight::Services::Western::TransitChartService

Inherits:
Object
  • Object
show all
Defined in:
lib/astroinsight/services/western/transit_chart.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ TransitChartService

Returns a new instance of TransitChartService.



7
8
9
# File 'lib/astroinsight/services/western/transit_chart.rb', line 7

def initialize(client)
  @client = client
end

Instance Method Details

#get_aspects_grid(birth_details) ⇒ Object



16
17
18
19
# File 'lib/astroinsight/services/western/transit_chart.rb', line 16

def get_aspects_grid(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/western/transits/natal/aspects-grid", payload)
end

#get_wheel_chart(birth_details) ⇒ Object



11
12
13
14
# File 'lib/astroinsight/services/western/transit_chart.rb', line 11

def get_wheel_chart(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/western/transits/natal/wheel-chart", payload)
end