lib/sportradar/api/basketball/team.rb in sportradar-api-0.10.0 vs lib/sportradar/api/basketball/team.rb in sportradar-api-0.10.1

- old
+ new

@@ -1,22 +1,9 @@ module Sportradar module Api module Basketball class Team < Data attr_accessor :response, :id, :market, :name, :alias, :full_name, :venue, :records, :player_stats, :team_stats - @all_hash = {} - def self.new(data, **opts) - existing = @all_hash[data['id']] - if existing - existing.update(data, **opts) - existing - else - @all_hash[data['id']] = super - end - end - def self.all - @all_hash.values - end def initialize(data, **opts) @response = data @api = opts[:api]