Class: Ika3::Schedule

Inherits:
Object
  • Object
show all
Defined in:
lib/ika3/schedule.rb

Instance Method Summary collapse

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

#eventObject



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_contestObject



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