Class: AstroInsight::Services::Vedic::YoginiDashaService

Inherits:
Object
  • Object
show all
Defined in:
lib/astroinsight/services/vedic/yogini_dasha.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ YoginiDashaService

Returns a new instance of YoginiDashaService.



7
8
9
# File 'lib/astroinsight/services/vedic/yogini_dasha.rb', line 7

def initialize(client)
  @client = client
end

Instance Method Details

#get_antar_dasha(birth_details) ⇒ Object



16
17
18
19
# File 'lib/astroinsight/services/vedic/yogini_dasha.rb', line 16

def get_antar_dasha(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/dasha/yogini/antar-dasha", payload)
end

#get_current_dasha(birth_details) ⇒ Object



21
22
23
24
# File 'lib/astroinsight/services/vedic/yogini_dasha.rb', line 21

def get_current_dasha(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/dasha/yogini/current-dasha", payload)
end

#get_major_dasha(birth_details) ⇒ Object



11
12
13
14
# File 'lib/astroinsight/services/vedic/yogini_dasha.rb', line 11

def get_major_dasha(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/dasha/yogini/major-dasha", payload)
end