Class: AstroInsight::Services::Western::SolarReturnService
- Inherits:
-
Object
- Object
- AstroInsight::Services::Western::SolarReturnService
- Defined in:
- lib/astroinsight/services/western/solar_return.rb
Instance Method Summary collapse
- #get_details(birth_details) ⇒ Object
- #get_house_cusps(birth_details) ⇒ Object
- #get_planet_aspects(birth_details) ⇒ Object
- #get_planets(birth_details) ⇒ Object
-
#initialize(client) ⇒ SolarReturnService
constructor
A new instance of SolarReturnService.
Constructor Details
#initialize(client) ⇒ SolarReturnService
Returns a new instance of SolarReturnService.
7 8 9 |
# File 'lib/astroinsight/services/western/solar_return.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#get_details(birth_details) ⇒ Object
11 12 13 14 |
# File 'lib/astroinsight/services/western/solar_return.rb', line 11 def get_details(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/western/solar-return/details", payload) end |
#get_house_cusps(birth_details) ⇒ Object
21 22 23 24 |
# File 'lib/astroinsight/services/western/solar_return.rb', line 21 def get_house_cusps(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/western/solar-return/house-cusps", payload) end |
#get_planet_aspects(birth_details) ⇒ Object
26 27 28 29 |
# File 'lib/astroinsight/services/western/solar_return.rb', line 26 def get_planet_aspects(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/western/solar-return/planet-aspects", payload) end |
#get_planets(birth_details) ⇒ Object
16 17 18 19 |
# File 'lib/astroinsight/services/western/solar_return.rb', line 16 def get_planets(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/western/solar-return/planets", payload) end |