Sha256: e8d15de46c0828cad6484e3b1f567e922fee8bfc379b3eebc940c656709a6cdb

Contents?: true

Size: 288 Bytes

Versions: 19

Compression:

Stored size: 288 Bytes

Contents

module SportsDataApi
  module Nfl
    class TeamSeasonStats
      attr_reader :id, :stats
      def initialize(json)
        @id = json['id']
        @stats = []
        json['statistics'].each_pair do | key, val |
          @stats << { key: val }
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
sports_data_api-0.14.1 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.14.0 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.13.0 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.12.1 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.12.0 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.11.6 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.11.5 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.11.3 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.11.2 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.11.1 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.11.0 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.10.1 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.10.0 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.9.2 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.2.4 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.2.3 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.2.2 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.2.1 lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.2.0 lib/sports_data_api/nfl/team_season_stats.rb