lib/sportradar/api/basketball/nba/player.rb in sportradar-api-0.9.28 vs lib/sportradar/api/basketball/nba/player.rb in sportradar-api-0.9.29
- old
+ new
@@ -1,11 +1,11 @@
module Sportradar
module Api
module Basketball
class Nba
class Player < Data
- attr_accessor :response, :id, :number, :full_name, :position, :birth_date, :birth_place, :college
+ attr_accessor :response, :id, :number, :full_name, :first_name, :last_name, :position, :birth_date, :birth_place, :college, :height, :weight, :birth_place, :college
# @all_hash = {}
# def self.new(data, **opts)
# existing = @all_hash[data['id']]
# if existing
# existing.update(data, **opts)
@@ -36,9 +36,12 @@
def name # to match api for NFL::Player
full_name
end
def display_name
full_name
+ end
+ def jersey
+ @jersey_number
end
def birth_date # to match api for NFL::Player
@birthdate
end