lib/sportradar/api/data.rb in sportradar-api-0.9.46 vs lib/sportradar/api/data.rb in sportradar-api-0.9.47

- old
+ new

@@ -52,10 +52,10 @@ existing ||= {} # handles nil case, typically during object instantiation case data when Array data.each do |hash| current = existing[hash['id']] - current ? current.update(hash) : existing[hash['id']] = klass.new(hash, **opts) + current ? current.update(hash, **opts) : existing[hash['id']] = klass.new(hash, **opts) existing[hash['id']] end when Hash existing[data['id']] = klass.new(data, **opts) else