Class: AstroInsight::Services::Vedic::MatchMakingService
- Inherits:
-
Object
- Object
- AstroInsight::Services::Vedic::MatchMakingService
- Defined in:
- lib/astroinsight/services/vedic/match_making.rb
Instance Method Summary collapse
- #get_guna_milan(match_input) ⇒ Object
- #get_manglik_match(match_input) ⇒ Object
- #get_match_making_report(match_input) ⇒ Object
-
#initialize(client) ⇒ MatchMakingService
constructor
A new instance of MatchMakingService.
Constructor Details
#initialize(client) ⇒ MatchMakingService
Returns a new instance of MatchMakingService.
7 8 9 |
# File 'lib/astroinsight/services/vedic/match_making.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#get_guna_milan(match_input) ⇒ Object
11 12 13 14 |
# File 'lib/astroinsight/services/vedic/match_making.rb', line 11 def get_guna_milan(match_input) payload = match_input.respond_to?(:to_h) ? match_input.to_h : match_input @client.post("/matchmaking/guna-milan", payload) end |
#get_manglik_match(match_input) ⇒ Object
21 22 23 24 |
# File 'lib/astroinsight/services/vedic/match_making.rb', line 21 def get_manglik_match(match_input) payload = match_input.respond_to?(:to_h) ? match_input.to_h : match_input @client.post("/matchmaking/manglik-match", payload) end |
#get_match_making_report(match_input) ⇒ Object
16 17 18 19 |
# File 'lib/astroinsight/services/vedic/match_making.rb', line 16 def get_match_making_report(match_input) payload = match_input.respond_to?(:to_h) ? match_input.to_h : match_input @client.post("/matchmaking/report", payload) end |