lib/sportradar/api/nfl/conference.rb in sportradar-api-0.9.24 vs lib/sportradar/api/nfl/conference.rb in sportradar-api-0.9.25
- old
+ new
@@ -1,11 +1,12 @@
module Sportradar
module Api
class Nfl::Conference < Data
attr_accessor :response, :id, :name, :alias, :divisions
- def initialize(data)
+ def initialize(data, **opts)
@response = data
+ @api = opts[:api]
@id = data["id"]
@name = data["name"]
@alias = data["alias"]
@divisions = parse_into_array(selector: response["division"], klass: Sportradar::Api::Nfl::Division) if response["division"]
end