Class: Astroapi::Categories::Insights::Wellness
- Inherits:
-
BaseCategory
- Object
- BaseCategory
- Astroapi::Categories::Insights::Wellness
- Defined in:
- lib/astroapi/categories/insights/wellness.rb
Overview
Wellness insights sub-client
Instance Attribute Summary
Attributes inherited from BaseCategory
Instance Method Summary collapse
-
#get_biorhythms(request) ⇒ Hash
Get biorhythms.
-
#get_body_mapping(request) ⇒ Hash
Get body mapping.
-
#get_energy_patterns(request) ⇒ Hash
Get energy patterns.
-
#get_moon_wellness(request) ⇒ Hash
Get moon wellness.
-
#get_wellness_score(request) ⇒ Hash
Get wellness score.
-
#get_wellness_timing(request) ⇒ Hash
Get wellness timing.
Methods inherited from BaseCategory
Constructor Details
This class inherits a constructor from Astroapi::Categories::BaseCategory
Instance Method Details
#get_biorhythms(request) ⇒ Hash
Get biorhythms
22 23 24 25 |
# File 'lib/astroapi/categories/insights/wellness.rb', line 22 def get_biorhythms(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('biorhythms'), body: request) end |
#get_body_mapping(request) ⇒ Hash
Get body mapping
14 15 16 17 |
# File 'lib/astroapi/categories/insights/wellness.rb', line 14 def get_body_mapping(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('body-mapping'), body: request) end |
#get_energy_patterns(request) ⇒ Hash
Get energy patterns
38 39 40 41 |
# File 'lib/astroapi/categories/insights/wellness.rb', line 38 def get_energy_patterns(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('energy-patterns'), body: request) end |
#get_moon_wellness(request) ⇒ Hash
Get moon wellness
54 55 56 57 |
# File 'lib/astroapi/categories/insights/wellness.rb', line 54 def get_moon_wellness(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('moon-wellness'), body: request) end |
#get_wellness_score(request) ⇒ Hash
Get wellness score
46 47 48 49 |
# File 'lib/astroapi/categories/insights/wellness.rb', line 46 def get_wellness_score(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('wellness-score'), body: request) end |
#get_wellness_timing(request) ⇒ Hash
Get wellness timing
30 31 32 33 |
# File 'lib/astroapi/categories/insights/wellness.rb', line 30 def get_wellness_timing(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('wellness-timing'), body: request) end |