class Sportradar::Nfl::GameRequest

Attributes

away_team_abbreviation[R]
home_team_abbreviation[R]

Public Class Methods

new(year: nil, interval_type: nil, week: 1, away_team_abbreviation:, home_team_abbreviation:) click to toggle source
Calls superclass method Sportradar::Nfl::WeeklySchedule::new
# File lib/sportradar/nfl/game_request.rb, line 4
def initialize(year: nil,
               interval_type: nil,
               week: 1,
               away_team_abbreviation:,
               home_team_abbreviation:)
  super(year: year, interval_type: interval_type, week: week)

  @away_team_abbreviation = away_team_abbreviation
  @home_team_abbreviation = home_team_abbreviation
end

Public Instance Methods

game_path() click to toggle source
# File lib/sportradar/nfl/game_request.rb, line 15
def game_path
  "#{year}/#{interval_type}/#{week}/#{away_team_abbreviation}/#{home_team_abbreviation}"
end