lib/sportradar/api/basketball/nba/game.rb in sportradar-api-0.9.41 vs lib/sportradar/api/basketball/nba/game.rb in sportradar-api-0.9.45

- old
+ new

@@ -3,21 +3,21 @@ module Basketball class Nba class Game < Data attr_accessor :response, :id, :home, :away, :home_id, :away_id, :score, :scoring, :status, :scheduled, :venue, :broadcast, :clock, :duration, :attendance, :quarter, :team_stats, :player_stats, :changes, :media_timeouts @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 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] # @season = opts[:season] \ No newline at end of file