class SportsDataApi::Ncaafb::Week

Attributes

games[R]
number[R]
season[R]
year[R]

Public Class Methods

new(year, season, week_hash) click to toggle source
# File lib/sports_data_api/ncaafb/week.rb, line 6
def initialize(year, season, week_hash)
  @games = []
  @year = year
  @season = season

  @number = week_hash['number']
  @games = week_hash['games'].map do |game_hash|
    Game.new(@year, @season, @number, game_hash)
  end
end