Sha256: 2e378f1f5ec5138eec414ce9da1ea90aaea840f6e16d89edcf2a73c0ff62e768
Contents?: true
Size: 404 Bytes
Versions: 21
Compression:
Stored size: 404 Bytes
Contents
module SportsDataApi module Ncaafb class Week attr_reader :number, :games, :year, :season 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 end end end
Version data entries
21 entries across 21 versions & 1 rubygems