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.35 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.34 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.33 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.32 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.31 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.30 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.29 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.28 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.27 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.26 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.25 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.24 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.23 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.22 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.21 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.20 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.19 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.18 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.17 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.10.16 lib/sportradar/api/nfl/conference.rb