Class: OptaSD::Soccer::TournamentCalendar

Inherits:
SoccerCore show all
Defined in:
lib/opta_sd/soccer/tournament_calendar.rb

Constant Summary

Constants inherited from Core

Core::PARAMETERS

Instance Attribute Summary

Attributes inherited from SoccerCore

#data, #params

Attributes inherited from Core

#data

Instance Method Summary collapse

Methods inherited from SoccerCore

#resource

Methods inherited from Core

#get, #parse_data, #parse_json, #parse_xml

Constructor Details

#initializeTournamentCalendar

Returns a new instance of TournamentCalendar.



7
8
9
10
# File 'lib/opta_sd/soccer/tournament_calendar.rb', line 7

def initialize
  super
  @feed_name = 'tournamentcalendar'
end

Instance Method Details

#activeObject



12
13
14
15
# File 'lib/opta_sd/soccer/tournament_calendar.rb', line 12

def active
  @resource = @resource ? @resource + '/active' : 'active'
  self
end

#authorizedObject



17
18
19
20
# File 'lib/opta_sd/soccer/tournament_calendar.rb', line 17

def authorized
  @resource = @resource ? @resource + '/authorized' : 'authorized'
  self
end