Class: AstroInsight::Services::Vedic::HoroscopeDoshaService
- Inherits:
-
Object
- Object
- AstroInsight::Services::Vedic::HoroscopeDoshaService
- Defined in:
- lib/astroinsight/services/vedic/horoscope_dosha.rb
Instance Method Summary collapse
- #get_kalsarp_dosha(birth_details) ⇒ Object
- #get_manglik_dosha(birth_details) ⇒ Object
- #get_pitra_dosha(birth_details) ⇒ Object
- #get_sadesati_details(birth_details) ⇒ Object
-
#initialize(client) ⇒ HoroscopeDoshaService
constructor
A new instance of HoroscopeDoshaService.
Constructor Details
#initialize(client) ⇒ HoroscopeDoshaService
Returns a new instance of HoroscopeDoshaService.
7 8 9 |
# File 'lib/astroinsight/services/vedic/horoscope_dosha.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#get_kalsarp_dosha(birth_details) ⇒ Object
16 17 18 19 |
# File 'lib/astroinsight/services/vedic/horoscope_dosha.rb', line 16 def get_kalsarp_dosha(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/horoscope/dosha/kalsarp", payload) end |
#get_manglik_dosha(birth_details) ⇒ Object
11 12 13 14 |
# File 'lib/astroinsight/services/vedic/horoscope_dosha.rb', line 11 def get_manglik_dosha(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/horoscope/dosha/manglik", payload) end |
#get_pitra_dosha(birth_details) ⇒ Object
21 22 23 24 |
# File 'lib/astroinsight/services/vedic/horoscope_dosha.rb', line 21 def get_pitra_dosha(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/horoscope/dosha/pitra", payload) end |
#get_sadesati_details(birth_details) ⇒ Object
26 27 28 29 |
# File 'lib/astroinsight/services/vedic/horoscope_dosha.rb', line 26 def get_sadesati_details(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/horoscope/dosha/sadesati", payload) end |