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.9.12 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.11 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.10 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.9 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.8 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.7 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.6 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.5 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.3 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.2 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.1 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.0 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.1.38 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.1.37 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.1.36 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.1.35 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.1.34 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.1.33 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.1.32 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.1.31 lib/sportradar/api/nfl/summary.rb