Class: AstroInsight::Services::Vedic::LalKitabService

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ LalKitabService

Returns a new instance of LalKitabService.



9
10
11
# File 'lib/astroinsight/services/vedic/lal_kitab.rb', line 9

def initialize(client)
  @client = client
end

Instance Method Details

#get_lal_kitab_debts(birth_details) ⇒ Object



13
14
15
16
# File 'lib/astroinsight/services/vedic/lal_kitab.rb', line 13

def get_lal_kitab_debts(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/lalkitab/debts", payload)
end

#get_lal_kitab_houses(birth_details) ⇒ Object



23
24
25
26
# File 'lib/astroinsight/services/vedic/lal_kitab.rb', line 23

def get_lal_kitab_houses(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/lalkitab/houses", payload)
end

#get_lal_kitab_planets(birth_details) ⇒ Object



18
19
20
21
# File 'lib/astroinsight/services/vedic/lal_kitab.rb', line 18

def get_lal_kitab_planets(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/lalkitab/planets", payload)
end

#get_lal_kitab_remedies(planet_key, birth_details) ⇒ Object



28
29
30
31
# File 'lib/astroinsight/services/vedic/lal_kitab.rb', line 28

def get_lal_kitab_remedies(planet_key, birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/lalkitab/remedies/#{CGI.escape(planet_key)}", payload)
end