Class: AstroInsight::Services::Vedic::SuggestionsService

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ SuggestionsService

Returns a new instance of SuggestionsService.



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

def initialize(client)
  @client = client
end

Instance Method Details

#get_gemstone_suggestions(birth_details) ⇒ Object



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

def get_gemstone_suggestions(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/suggestions/gemstone", payload)
end

#get_jadi_suggestions(birth_details) ⇒ Object



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

def get_jadi_suggestions(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/suggestions/jadi", payload)
end

#get_rudraksha_suggestions(birth_details) ⇒ Object



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

def get_rudraksha_suggestions(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/suggestions/rudraksha", payload)
end