Sha256: 37344811d284f4ef096baa74a85147cd11c9540e70c11e6cf6bce7e533a47024

Contents?: true

Size: 426 Bytes

Versions: 26

Compression:

Stored size: 426 Bytes

Contents

module Sportradar
  module Api
    class Nfl::DepthChart < Data
      attr_accessor :response, :season, :teams

      def initialize(data)
        @response = data
        @season = Sportradar::Api::Nfl::Season.new data["season"] if data["season"]
        @teams = data["season"]["depth_charts"]["team"].map {|team| Sportradar::Api::Nfl::Team.new team } if data["season"]["depth_charts"]["team"]

      end

    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
sportradar-api-0.1.32 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.31 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.30 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.29 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.28 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.27 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.26 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.25 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.24 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.23 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.22 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.21 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.19 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.18 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.17 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.16 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.15 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.14 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.13 lib/sportradar/api/nfl/depth_chart.rb
sportradar-api-0.1.12 lib/sportradar/api/nfl/depth_chart.rb