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