Sha256: 4740c5fafc466ca409b5fe2eda206ab41108fc5afe1b3816d43159e236b47b9e

Contents?: true

Size: 603 Bytes

Versions: 143

Compression:

Stored size: 603 Bytes

Contents

module Sportradar
  module Api
    class Nfl::Summary < Data
      attr_accessor :response, :season, :week, :venue, :home, :away

      def initialize(data)
        @response = data
        @season = Sportradar::Api::Nfl::Season.new data["season"] if data["season"]
        @week = Sportradar::Api::Nfl::Week.new data["week"] if data["week"]
        @venue = Sportradar::Api::Nfl::Venue.new data["venue"] if data["venue"]
        @home = Sportradar::Api::Nfl::Team.new data["home"] if data["home"]
        @away = Sportradar::Api::Nfl::Team.new data["away"] if data["away"]
      end

    end
  end
end

Version data entries

143 entries across 143 versions & 1 rubygems

Version Path
sportradar-api-0.10.15 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.14 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.13 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.12 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.11 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.10 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.9 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.8 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.7 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.6 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.5 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.4 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.3 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.2 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.1 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.10.0 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.59 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.58 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.57 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.56 lib/sportradar/api/nfl/summary.rb