Sha256: a0c0b22714c6dfc2a79965215e15ec1c7a56f0b4f3320b51bb501f3d9bf7107f

Contents?: true

Size: 465 Bytes

Versions: 88

Compression:

Stored size: 465 Bytes

Contents

module Sportradar
  module Api
    class Nfl::Conference < Data
      attr_accessor :response, :id, :name, :alias, :divisions

      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

    end
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
sportradar-api-0.10.15 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.14 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.13 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.12 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.11 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.10 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.9 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.8 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.7 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.6 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.5 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.4 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.3 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.2 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.1 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.0 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.59 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.58 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.57 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.56 lib/sportradar/api/nfl/conference.rb