Sha256: 436ed848c4601e8febcc6f2c272bc983bfe982951d6edfdd0cbe73cb3c208f51

Contents?: true

Size: 1.11 KB

Versions: 144

Compression:

Stored size: 1.11 KB

Contents

module Sportradar
  module Api
    class Nfl::Statistic < Data
      attr_accessor :response, :id, :sequence, :reference, :clock, :home_points, :away_points, :type, :play_clock, :wall_clock, :start_situation, :end_situation, :description, :alt_description, :statistics, :score, :scoring_play

      def initialize(data)
        @response = data
        @alt_description = data["alt_description"]
        @away_points = data["away_points"]
        @clock = data["clock"]
        @description = data["description"]
        @end_situation = Sportradar::Api::Nfl::Situation.new data["end_situation"] if data["end_situation"]
        @home_points = data["home_points"]
        @id = data["id"]
        @play_clock = data["play_clock"]
        @reference = data["reference"]
        @score = data["score"]
        @scoring_play = data["scoring_play"]
        @sequence = data["sequence"]
        @start_situation = Sportradar::Api::Nfl::Situation.new data["start_situation"] if data["start_situation"]
        @statistics = data["statistics"]
        @type = data["type"]
        @wall_clock = data["wall_clock"]
      end

    end
  end
end

Version data entries

144 entries across 144 versions & 1 rubygems

Version Path
sportradar-api-0.10.55 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.54 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.53 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.52 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.51 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.50 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.49 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.48 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.47 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.46 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.45 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.44 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.43 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.42 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.41 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.40 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.39 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.38 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.37 lib/sportradar/api/nfl/statistic.rb
sportradar-api-0.10.36 lib/sportradar/api/nfl/statistic.rb