Sha256: 07c495b2eb4b9adf49988b8b226cbfa84eb1f9d68bbc39e49b3eafcf5c50cc45

Contents?: true

Size: 426 Bytes

Versions: 24

Compression:

Stored size: 426 Bytes

Contents

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

      def initialize(data)
        @response = data
        @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

24 entries across 24 versions & 1 rubygems

Version Path
sportradar-api-0.9.24 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.23 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.22 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.21 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.20 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.19 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.18 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.17 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.16 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.15 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.14 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.13 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.12 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.11 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.10 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.9 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.8 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.7 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.6 lib/sportradar/api/nfl/conference.rb
sportradar-api-0.9.5 lib/sportradar/api/nfl/conference.rb