class Sportradar::Nfl::WeeklySchedule

Attributes

week[R]

Public Class Methods

new(year: nil, interval_type: nil, week: 1) click to toggle source
Calls superclass method Sportradar::Feeds::LeagueSchedule::new
# File lib/sportradar/nfl/weekly_schedule.rb, line 4
def initialize(year: nil, interval_type: nil, week: 1)
  super(year: year, interval_type: interval_type)
  @week = week
end

Public Instance Methods

path() click to toggle source
# File lib/sportradar/nfl/weekly_schedule.rb, line 13
def path
  "#{week_path}/schedule.json"
end
week_path() click to toggle source
# File lib/sportradar/nfl/weekly_schedule.rb, line 9
def week_path
  "#{year}/#{interval_type}/#{week}"
end

Private Instance Methods

games() click to toggle source
# File lib/sportradar/nfl/weekly_schedule.rb, line 21
def games
  fetch['games'] || []
end