lib/sportradar/api/basketball/nba/player.rb in sportradar-api-0.16.0 vs lib/sportradar/api/basketball/nba/player.rb in sportradar-api-0.16.1

- old
+ new

@@ -1,11 +1,11 @@ module Sportradar module Api module Basketball class Nba class Player < Data - attr_accessor :response, :id, :number, :full_name, :first_name, :last_name, :position, :birth_place, :college, :height, :weight, :averages, :totals, :draft, :stats, :team + attr_accessor :response, :id, :number, :full_name, :first_name, :last_name, :position, :birth_place, :college, :height, :weight, :averages, :totals, :draft, :stats, :team, :not_playing_reason, :not_playing_description # @all_hash = {} # def self.new(data, **opts) # existing = @all_hash[data['id']] # if existing # existing.update(data, **opts) @@ -55,9 +55,11 @@ @primary_position = data['primary_position'] if data['primary_position'] # "C", @jersey_number = data['jersey_number'] if data['jersey_number'] # "31", @experience = data['experience'] if data['experience'] # "3", @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", + @not_playing_reason = data['not_playing_reason'] if data['not_playing_reason'] # "Inactive - Injury/Illness" + @not_playing_description = data['not_playing_description'] if data['not_playing_description'] # "Left Ankle; Sprain" # NBA specific below @college = data['college'] if data['college'] # "Vanderbilt", @birthdate = data['birthdate'] if data['birthdate'] # "1989-10-21",