lib/sportradar/api/basketball/venue.rb in sportradar-api-0.10.55 vs lib/sportradar/api/basketball/venue.rb in sportradar-api-0.11.0
- old
+ new
@@ -1,10 +1,10 @@
module Sportradar
module Api
module Basketball
class Venue < Data
- attr_accessor :response, :id, :name, :address, :city, :state, :country, :zip, :capacity
+ attr_accessor :response, :id, :name, :address, :city, :state, :country, :zip, :capacity, :timezone
@all_hash = {}
def self.new(data, **opts)
existing = @all_hash[data['id']]
if existing
existing.update(data, **opts)
@@ -29,9 +29,10 @@
@city = data['city']
@state = data['state']
@zip = data['zip']
@country = data['country']
@capacity = data['capacity']
+ @timezone = data['timezone']
end
def location
"#{name}, #{city}"
end