Class: AstroInsight::Services::Vedic::AstroDetailsService
- Inherits:
-
Object
- Object
- AstroInsight::Services::Vedic::AstroDetailsService
- Defined in:
- lib/astroinsight/services/vedic/astro_details.rb
Instance Method Summary collapse
- #get_astro_details(birth_details) ⇒ Object
- #get_basic_astro_details(birth_details) ⇒ Object
- #get_birth_details(birth_details) ⇒ Object
- #get_ghat_chakra(birth_details) ⇒ Object
- #get_planetary_friendship(birth_details) ⇒ Object
- #get_planets(birth_details) ⇒ Object
- #get_planets_extended(birth_details) ⇒ Object
-
#initialize(client) ⇒ AstroDetailsService
constructor
A new instance of AstroDetailsService.
Constructor Details
#initialize(client) ⇒ AstroDetailsService
Returns a new instance of AstroDetailsService.
7 8 9 |
# File 'lib/astroinsight/services/vedic/astro_details.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#get_astro_details(birth_details) ⇒ Object
21 22 23 24 |
# File 'lib/astroinsight/services/vedic/astro_details.rb', line 21 def get_astro_details(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/astro-details/astro-details", payload) end |
#get_basic_astro_details(birth_details) ⇒ Object
16 17 18 19 |
# File 'lib/astroinsight/services/vedic/astro_details.rb', line 16 def get_basic_astro_details(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/astro-details/basic-astro-details", payload) end |
#get_birth_details(birth_details) ⇒ Object
11 12 13 14 |
# File 'lib/astroinsight/services/vedic/astro_details.rb', line 11 def get_birth_details(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/astro-details/birth-details", payload) end |
#get_ghat_chakra(birth_details) ⇒ Object
36 37 38 39 |
# File 'lib/astroinsight/services/vedic/astro_details.rb', line 36 def get_ghat_chakra(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/astro-details/ghat-chakra", payload) end |
#get_planetary_friendship(birth_details) ⇒ Object
41 42 43 44 |
# File 'lib/astroinsight/services/vedic/astro_details.rb', line 41 def get_planetary_friendship(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/astro-details/planetary-friendship", payload) end |
#get_planets(birth_details) ⇒ Object
26 27 28 29 |
# File 'lib/astroinsight/services/vedic/astro_details.rb', line 26 def get_planets(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/astro-details/planets", payload) end |
#get_planets_extended(birth_details) ⇒ Object
31 32 33 34 |
# File 'lib/astroinsight/services/vedic/astro_details.rb', line 31 def get_planets_extended(birth_details) payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details @client.post("/astro-details/planets-extended", payload) end |