Class: AstroInsight::Services::Western::TransitService

Inherits:
Object
  • Object
show all
Defined in:
lib/astroinsight/services/western/transit.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ TransitService

Returns a new instance of TransitService.



7
8
9
# File 'lib/astroinsight/services/western/transit.rb', line 7

def initialize(client)
  @client = client
end

Instance Method Details

#get_daily_natal_transit(birth_details) ⇒ Object



11
12
13
14
# File 'lib/astroinsight/services/western/transit.rb', line 11

def get_daily_natal_transit(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/western/transits/natal/daily", payload)
end

#get_daily_timing(birth_details) ⇒ Object



26
27
28
29
# File 'lib/astroinsight/services/western/transit.rb', line 26

def get_daily_timing(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/western/transits/natal/timing/daily", payload)
end

#get_monthly_natal_transit(birth_details) ⇒ Object



21
22
23
24
# File 'lib/astroinsight/services/western/transit.rb', line 21

def get_monthly_natal_transit(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/western/transits/natal/monthly", payload)
end

#get_monthly_timing(birth_details) ⇒ Object



36
37
38
39
# File 'lib/astroinsight/services/western/transit.rb', line 36

def get_monthly_timing(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/western/transits/natal/timing/monthly", payload)
end

#get_weekly_natal_transit(birth_details) ⇒ Object



16
17
18
19
# File 'lib/astroinsight/services/western/transit.rb', line 16

def get_weekly_natal_transit(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/western/transits/natal/weekly", payload)
end

#get_weekly_timing(birth_details) ⇒ Object



31
32
33
34
# File 'lib/astroinsight/services/western/transit.rb', line 31

def get_weekly_timing(birth_details)
  payload = birth_details.respond_to?(:to_h) ? birth_details.to_h : birth_details
  @client.post("/western/transits/natal/timing/weekly", payload)
end