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.9.55 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.54 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.53 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.52 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.51 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.50 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.49 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.48 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.47 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.46 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.45 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.41 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.40 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.39 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.38 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.37 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.36 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.35 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.34 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.33 lib/sportradar/api/nfl/conference.rb