Class: AstroInsight::Services::Western::TransitChartService
- Inherits:
-
Object
- Object
- AstroInsight::Services::Western::TransitChartService
- Defined in:
- lib/astroinsight/services/western/transit_chart.rb
Instance Method Summary collapse
- #get_aspects_grid(birth_details) ⇒ Object
- #get_wheel_chart(birth_details) ⇒ Object
-
#initialize(client) ⇒ TransitChartService
constructor
A new instance of TransitChartService.
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 |