Class: Astroapi::Categories::Astrocartography
- Inherits:
-
BaseCategory
- Object
- BaseCategory
- Astroapi::Categories::Astrocartography
- Defined in:
- lib/astroapi/categories/astrocartography.rb
Overview
Astrocartography category client for locational astrology
Instance Attribute Summary
Attributes inherited from BaseCategory
Instance Method Summary collapse
-
#analyze_location(request) ⇒ Hash
Analyze specific location.
-
#calculate_astrodynes(request) ⇒ Hash
Calculate astrodynes.
-
#compare_astrodynes(request) ⇒ Hash
Compare astrodynes for multiple locations.
-
#compare_locations(request) ⇒ Hash
Compare multiple locations.
-
#find_power_zones(request) ⇒ Hash
Find power zones.
-
#generate_map(request) ⇒ Hash
Generate astrocartography map.
-
#generate_paran_map(request) ⇒ Hash
Generate paran map.
-
#generate_relocation_chart(request) ⇒ Hash
Generate relocation chart.
-
#get_line_meanings(params = {}) ⇒ Hash
Get line meanings.
-
#get_lines(request) ⇒ Hash
Get astrocartography lines.
-
#get_supported_features(params = {}) ⇒ Hash
Get supported features.
-
#render_map(request) ⇒ Hash
Render astrocartography map image.
-
#search_locations(request) ⇒ Hash
Search locations by criteria.
Methods inherited from BaseCategory
Constructor Details
This class inherits a constructor from Astroapi::Categories::BaseCategory
Instance Method Details
#analyze_location(request) ⇒ Hash
Analyze specific location
37 38 39 40 |
# File 'lib/astroapi/categories/astrocartography.rb', line 37 def analyze_location(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('location-analysis'), body: request) end |
#calculate_astrodynes(request) ⇒ Hash
Calculate astrodynes
91 92 93 94 |
# File 'lib/astroapi/categories/astrocartography.rb', line 91 def calculate_astrodynes(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('astrodynes'), body: request) end |
#compare_astrodynes(request) ⇒ Hash
Compare astrodynes for multiple locations
99 100 101 102 |
# File 'lib/astroapi/categories/astrocartography.rb', line 99 def compare_astrodynes(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('astrodynes', 'compare'), body: request) end |
#compare_locations(request) ⇒ Hash
Compare multiple locations
45 46 47 48 |
# File 'lib/astroapi/categories/astrocartography.rb', line 45 def compare_locations(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('compare-locations'), body: request) end |
#find_power_zones(request) ⇒ Hash
Find power zones
53 54 55 56 |
# File 'lib/astroapi/categories/astrocartography.rb', line 53 def find_power_zones(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('power-zones'), body: request) end |
#generate_map(request) ⇒ Hash
Generate astrocartography map
21 22 23 24 |
# File 'lib/astroapi/categories/astrocartography.rb', line 21 def generate_map(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('map'), body: request) end |
#generate_paran_map(request) ⇒ Hash
Generate paran map
29 30 31 32 |
# File 'lib/astroapi/categories/astrocartography.rb', line 29 def generate_paran_map(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('paran-map'), body: request) end |
#generate_relocation_chart(request) ⇒ Hash
Generate relocation chart
69 70 71 72 |
# File 'lib/astroapi/categories/astrocartography.rb', line 69 def generate_relocation_chart(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('relocation-chart'), body: request) end |
#get_line_meanings(params = {}) ⇒ Hash
Get line meanings
77 78 79 |
# File 'lib/astroapi/categories/astrocartography.rb', line 77 def get_line_meanings(params = {}) http.get(build_url('line-meanings'), params: params) end |
#get_lines(request) ⇒ Hash
Get astrocartography lines
13 14 15 16 |
# File 'lib/astroapi/categories/astrocartography.rb', line 13 def get_lines(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('lines'), body: request) end |
#get_supported_features(params = {}) ⇒ Hash
Get supported features
84 85 86 |
# File 'lib/astroapi/categories/astrocartography.rb', line 84 def get_supported_features(params = {}) http.get(build_url('supported-features'), params: params) end |
#render_map(request) ⇒ Hash
Render astrocartography map image
107 108 109 110 |
# File 'lib/astroapi/categories/astrocartography.rb', line 107 def render_map(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('render'), body: request) end |
#search_locations(request) ⇒ Hash
Search locations by criteria
61 62 63 64 |
# File 'lib/astroapi/categories/astrocartography.rb', line 61 def search_locations(request) Validators::SubjectValidator.validate!(request[:subject] || request['subject']) http.post(build_url('search-locations'), body: request) end |