Class: Astroapi::Categories::Fengshui
- Inherits:
-
BaseCategory
- Object
- BaseCategory
- Astroapi::Categories::Fengshui
- Defined in:
- lib/astroapi/categories/fengshui.rb
Overview
Feng Shui category client
Instance Attribute Summary
Attributes inherited from BaseCategory
Instance Method Summary collapse
-
#calculate_flying_stars_chart(request) ⇒ Hash
Calculate Flying Stars chart.
-
#get_afflictions(year) ⇒ Hash
Get annual afflictions.
-
#get_annual_flying_stars(year) ⇒ Hash
Get annual Flying Stars.
-
#get_stars_glossary(params = {}) ⇒ Hash
Get Flying Stars glossary.
Methods inherited from BaseCategory
Constructor Details
This class inherits a constructor from Astroapi::Categories::BaseCategory
Instance Method Details
#calculate_flying_stars_chart(request) ⇒ Hash
Calculate Flying Stars chart
12 13 14 |
# File 'lib/astroapi/categories/fengshui.rb', line 12 def (request) http.post(build_url('flying-stars', 'chart'), body: request) end |
#get_afflictions(year) ⇒ Hash
Get annual afflictions
26 27 28 |
# File 'lib/astroapi/categories/fengshui.rb', line 26 def get_afflictions(year) http.get(build_url('afflictions', year)) end |
#get_annual_flying_stars(year) ⇒ Hash
Get annual Flying Stars
19 20 21 |
# File 'lib/astroapi/categories/fengshui.rb', line 19 def (year) http.get(build_url('flying-stars', 'annual', year)) end |
#get_stars_glossary(params = {}) ⇒ Hash
Get Flying Stars glossary
33 34 35 |
# File 'lib/astroapi/categories/fengshui.rb', line 33 def get_stars_glossary(params = {}) http.get(build_url('glossary', 'stars'), params: params) end |