Class: AstroInsight::Services::Vedic::LifeReportService

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ LifeReportService

Returns a new instance of LifeReportService.



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

def initialize(client)
  @client = client
end

Instance Method Details

#get_life_report(birth_details) ⇒ Object



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

def get_life_report(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/life-report", payload)
end