Class: AstroInsight::Services::Vedic::VarshaphalService
- Inherits:
-
Object
- Object
- AstroInsight::Services::Vedic::VarshaphalService
- Defined in:
- lib/astroinsight/services/vedic/varshaphal.rb
Instance Method Summary collapse
- #get_varshaphal_bala(birth_details) ⇒ Object
- #get_varshaphal_chart(birth_details) ⇒ Object
- #get_varshaphal_details(birth_details) ⇒ Object
- #get_varshaphal_muntha(birth_details) ⇒ Object
- #get_varshaphal_planets(birth_details) ⇒ Object
-
#initialize(client) ⇒ VarshaphalService
constructor
A new instance of VarshaphalService.
Constructor Details
#initialize(client) ⇒ VarshaphalService
Returns a new instance of VarshaphalService.
7 8 9 |
# File 'lib/astroinsight/services/vedic/varshaphal.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#get_varshaphal_bala(birth_details) ⇒ Object
31 32 33 34 |
# File 'lib/astroinsight/services/vedic/varshaphal.rb', line 31 def get_varshaphal_bala(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/varshaphal/panchavargeeya-bala", payload) end |
#get_varshaphal_chart(birth_details) ⇒ Object
16 17 18 19 |
# File 'lib/astroinsight/services/vedic/varshaphal.rb', line 16 def get_varshaphal_chart(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/varshaphal/chart", payload) end |
#get_varshaphal_details(birth_details) ⇒ Object
21 22 23 24 |
# File 'lib/astroinsight/services/vedic/varshaphal.rb', line 21 def get_varshaphal_details(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/varshaphal/details", payload) end |
#get_varshaphal_muntha(birth_details) ⇒ Object
26 27 28 29 |
# File 'lib/astroinsight/services/vedic/varshaphal.rb', line 26 def get_varshaphal_muntha(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/varshaphal/muntha", payload) end |
#get_varshaphal_planets(birth_details) ⇒ Object
11 12 13 14 |
# File 'lib/astroinsight/services/vedic/varshaphal.rb', line 11 def get_varshaphal_planets(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/varshaphal/planets", payload) end |