Class: Astroapi::Categories::FixedStars
- Inherits:
-
BaseCategory
- Object
- BaseCategory
- Astroapi::Categories::FixedStars
- Defined in:
- lib/astroapi/categories/fixed_stars.rb
Overview
Fixed stars astrology category client
Instance Attribute Summary
Attributes inherited from BaseCategory
Instance Method Summary collapse
-
#generate_report(request) ⇒ Hash
Generate report.
-
#get_conjunctions(request) ⇒ Hash
Get conjunctions.
-
#get_positions(request) ⇒ Hash
Get fixed star positions.
-
#get_presets(params = {}) ⇒ Hash
Get presets.
Methods inherited from BaseCategory
Constructor Details
This class inherits a constructor from Astroapi::Categories::BaseCategory
Instance Method Details
#generate_report(request) ⇒ Hash
Generate report
28 29 30 31 |
# File 'lib/astroapi/categories/fixed_stars.rb', line 28 def generate_report(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('report'), body: request) end |
#get_conjunctions(request) ⇒ Hash
Get conjunctions
20 21 22 23 |
# File 'lib/astroapi/categories/fixed_stars.rb', line 20 def get_conjunctions(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('conjunctions'), body: request) end |
#get_positions(request) ⇒ Hash
Get fixed star positions
13 14 15 |
# File 'lib/astroapi/categories/fixed_stars.rb', line 13 def get_positions(request) http.post(build_url('positions'), body: request) end |
#get_presets(params = {}) ⇒ Hash
Get presets
36 37 38 |
# File 'lib/astroapi/categories/fixed_stars.rb', line 36 def get_presets(params = {}) http.get(build_url('presets'), params: params) end |