lib/sportradar/api/basketball/ncaamb/division.rb in sportradar-api-0.11.69 vs lib/sportradar/api/basketball/ncaamb/division.rb in sportradar-api-0.12.0

- old
+ new

@@ -10,14 +10,16 @@ @api = opts[:api] @id = data["id"] @name = data["name"] @alias = data["alias"] + @conferences_hash = {} + update(data, **opts) end def update(data, **opts) - @conferences_hash = create_data({}, data["conferences"], klass: Conference, division: self, api: @api) if data["conferences"] + create_data(@conferences_hash, data["conferences"], klass: Conference, division: self, api: @api) if data["conferences"] end def conferences @conferences_hash.values end