Class: OptaSD::Soccer::TournamentCalendar
- Inherits:
-
SoccerCore
- Object
- Core
- SoccerCore
- OptaSD::Soccer::TournamentCalendar
- Defined in:
- lib/opta_sd/soccer/tournament_calendar.rb
Constant Summary
Constants inherited from Core
Instance Attribute Summary
Attributes inherited from SoccerCore
Attributes inherited from Core
Instance Method Summary collapse
- #active ⇒ Object
- #authorized ⇒ Object
-
#initialize ⇒ TournamentCalendar
constructor
A new instance of TournamentCalendar.
Methods inherited from SoccerCore
Methods inherited from Core
#get, #parse_data, #parse_json, #parse_xml
Constructor Details
#initialize ⇒ TournamentCalendar
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
#active ⇒ Object
12 13 14 15 |
# File 'lib/opta_sd/soccer/tournament_calendar.rb', line 12 def active @resource = @resource ? @resource + '/active' : 'active' self end |
#authorized ⇒ Object
17 18 19 20 |
# File 'lib/opta_sd/soccer/tournament_calendar.rb', line 17 def @resource = @resource ? @resource + '/authorized' : 'authorized' self end |