lib/sportradar/api/basketball/team.rb in sportradar-api-0.10.2 vs lib/sportradar/api/basketball/team.rb in sportradar-api-0.10.3
- old
+ new
@@ -1,10 +1,10 @@
module Sportradar
module Api
module Basketball
class Team < Data
- attr_accessor :response, :id, :market, :name, :alias, :full_name, :venue, :records, :player_stats, :team_stats
+ attr_accessor :response, :id, :market, :name, :alias, :full_name, :venue, :records, :player_stats, :team_stats, :seed
def initialize(data, **opts)
@response = data
@api = opts[:api]
@@ -30,9 +30,10 @@
def update(data, **opts)
handle_names(data)
@venue = Venue.new(data['venue']) if data['venue']
+ @seed = data['seed'].to_i if data['seed']
@alias = data['alias'] if data['alias']
@points = data['points'].to_i if data['points']
# @home = data['home'] == 'true' if data['home']
# @away = data['away'] == 'true' if data['away']
# @scoring = data.dig('scoring', 'quarter') if data.dig('scoring', 'quarter')