lib/sportradar/api/football/player.rb in sportradar-api-0.11.20 vs lib/sportradar/api/football/player.rb in sportradar-api-0.11.21
- 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, :api
+ attr_accessor :response, :id, :preferred_name, :number, :name_full, :name_first, :name_last, :position, :birth_place, :college, :height, :weight, :averages, :totals, :draft, :depth, :api
def initialize(data, **opts)
@response = data
@api = opts[:api]
@team = opts[:team]
@@ -52,9 +52,10 @@
@experience = data['experience'] if data['experience']
@birth_place = data['birth_place'].gsub(',,', ', ') if data['birth_place'] # "Benin City,, NGA",
@updated = data['updated'] if data['updated'] # "2016-07-08T12:11:59+00:00",
+ @depth = data['depth'] if data['depth']
@games_started = data['games_started'] if data['games_started']
@games_played = data['games_played'] if data['games_played']
# NCAA specific below
# update_injuries(data)
\ No newline at end of file