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