Class: Ika3::Schedule
- Inherits:
-
Object
- Object
- Ika3::Schedule
- Defined in:
- lib/ika3/schedule.rb
Instance Method Summary collapse
- #event ⇒ Object
-
#initialize(contact) ⇒ Schedule
constructor
A new instance of Schedule.
- #salmon_run_team_contest ⇒ Object
Constructor Details
#initialize(contact) ⇒ Schedule
Returns a new instance of Schedule.
5 6 7 |
# File 'lib/ika3/schedule.rb', line 5 def initialize(contact) @contact = contact end |
Instance Method Details
#event ⇒ Object
41 42 43 44 45 |
# File 'lib/ika3/schedule.rb', line 41 def event return @event_match unless @event_match.nil? @event_match = Battle.new(send_request(:get, '/api/event/schedule').body['results'][0]) end |
#salmon_run_team_contest ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/ika3/schedule.rb', line 33 def salmon_run_team_contest return @salmon_run_team_contest unless @salmon_run_team_contest.nil? @salmon_run_team_contest = Salmon.new( send_request(:get, '/api/coop-grouping-team-contest/schedule').body['results'][0] ) end |