Class: AstroInsight::Services::Vedic::LifeReportService
- Inherits:
-
Object
- Object
- AstroInsight::Services::Vedic::LifeReportService
- Defined in:
- lib/astroinsight/services/vedic/life_report.rb
Instance Method Summary collapse
- #get_life_report(birth_details) ⇒ Object
-
#initialize(client) ⇒ LifeReportService
constructor
A new instance of LifeReportService.
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 |