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.55 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.54 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.53 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.52 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.51 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.50 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.49 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.48 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.47 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.46 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.45 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.41 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.40 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.39 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.38 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.37 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.36 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.35 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.34 lib/sportradar/api/nfl/summary.rb
sportradar-api-0.9.33 lib/sportradar/api/nfl/summary.rb