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.55 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.54 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.53 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.52 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.51 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.50 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.49 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.48 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.47 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.46 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.45 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.44 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.43 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.42 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.41 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.40 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.39 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.38 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.37 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.36 lib/sportradar/api/nfl/conference.rb