lib/sportradar/api/baseball/player.rb in sportradar-api-0.10.38 vs lib/sportradar/api/baseball/player.rb in sportradar-api-0.10.39
- old
+ new
@@ -1,9 +1,9 @@
module Sportradar
module Api
module Baseball
class Player < Data
- attr_accessor :response, :id, :number, :full_name, :first_name, :last_name, :position, :birth_place, :college, :height, :weight, :draft, :hitting, :pitching, :fielding
+ attr_accessor :response, :id, :number, :full_name, :first_name, :last_name, :position, :primary_position, :birth_place, :college, :height, :weight, :draft, :hitting, :pitching, :fielding
def initialize(data, **opts)
@response = data # comment this out when done developing
@api = opts[:api]
@team = opts[:team]