class Sportradar::Feeds::LeagueSchedule

Attributes

interval_type[R]
year[R]

Public Class Methods

new(year: nil, interval_type: nil) click to toggle source
# File lib/sportradar/feeds/league_schedule.rb, line 4
def initialize(year: nil, interval_type: nil)
  @year = year || Date.today.strftime('%Y')
  @interval_type = interval_type || 'reg'
end

Public Instance Methods

path() click to toggle source
# File lib/sportradar/feeds/league_schedule.rb, line 9
def path
  "games/#{year}/#{interval_type}/schedule.json"
end