lib/sportradar/api/football/player.rb in sportradar-api-0.19.3 vs lib/sportradar/api/football/player.rb in sportradar-api-0.19.4

- old
+ new

@@ -1,10 +1,10 @@ module Sportradar module Api module Football class Player < Data - attr_accessor :response, :id, :preferred_name, :number, :name_full, :name_first, :name_last, :position, :birth_place, :college, :height, :weight, :averages, :totals, :draft, :depth, :api, :stats + attr_accessor :response, :id, :preferred_name, :number, :name_full, :name_first, :name_last, :position, :birth_place, :college, :height, :weight, :averages, :totals, :draft, :depth, :api, :stats, :team def initialize(data, **opts) @response = data @api = opts[:api] @team = opts[:team] @@ -122,6 +122,6 @@ ncaafb = Marshal.load(File.binread('ncaafb.bin')); t = ncaafb.teams.sample data = t.get_season_stats(2016); t.get_roster; t.players.sample -t.players.sample.totals \ No newline at end of file +t.players.sample.totals