Class: AstroInsight::Services::Vedic::BiorhythmService
- Inherits:
-
Object
- Object
- AstroInsight::Services::Vedic::BiorhythmService
- Defined in:
- lib/astroinsight/services/vedic/biorhythm.rb
Instance Method Summary collapse
- #get_biorhythm(birth_details) ⇒ Object
-
#initialize(client) ⇒ BiorhythmService
constructor
A new instance of BiorhythmService.
Constructor Details
#initialize(client) ⇒ BiorhythmService
Returns a new instance of BiorhythmService.
7 8 9 |
# File 'lib/astroinsight/services/vedic/biorhythm.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#get_biorhythm(birth_details) ⇒ Object
11 12 13 14 |
# File 'lib/astroinsight/services/vedic/biorhythm.rb', line 11 def get_biorhythm(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/biorhythm", payload) end |