Sha256: f225c413013e9a2973a003ed2fe5ad916265dedac423598533efc84f6ef79001
Contents?: true
Size: 355 Bytes
Versions: 19
Compression:
Stored size: 355 Bytes
Contents
module SportsDataApi module Nfl class PlayerSeasonStats attr_reader :stats, :id, :players def initialize(json) @players = [] json['players'].each do | p | player = {} player[:id] = p['id'] player[:stats] = p['statistics'] @players << player end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems