Class: AstroInsight::Services::Vedic::JaiminiService
- Inherits:
-
Object
- Object
- AstroInsight::Services::Vedic::JaiminiService
- Defined in:
- lib/astroinsight/services/vedic/jaimini.rb
Instance Method Summary collapse
- #get_jaimini_details(birth_details) ⇒ Object
- #get_jaimini_karaka(birth_details) ⇒ Object
-
#initialize(client) ⇒ JaiminiService
constructor
A new instance of JaiminiService.
Constructor Details
#initialize(client) ⇒ JaiminiService
Returns a new instance of JaiminiService.
7 8 9 |
# File 'lib/astroinsight/services/vedic/jaimini.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#get_jaimini_details(birth_details) ⇒ Object
11 12 13 14 |
# File 'lib/astroinsight/services/vedic/jaimini.rb', line 11 def get_jaimini_details(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/jaimini/details", payload) end |
#get_jaimini_karaka(birth_details) ⇒ Object
16 17 18 19 |
# File 'lib/astroinsight/services/vedic/jaimini.rb', line 16 def get_jaimini_karaka(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/jaimini/karaka", payload) end |