Sha256: 23f5f3281910063d0f8c7367ed62f5527cfe080871c9bce5b58bca54cf74d596

Contents?: true

Size: 1.74 KB

Versions: 222

Compression:

Stored size: 1.74 KB

Contents

module Sportradar
  module Api
    class Soccer::Fact < Data

      attr_accessor :id, :type, :time, :updated_time, :scratch, :reference_id, :clock, :team_id, :description, :period, :x, :y, :player_id, :card, :injury_time, :home_score, :away_score, :player_out_id, :player_in_id, :penalty, :owngoal, :header, :assist1_id, :winner_id, :draw, :response

      def initialize(data)
        @response = data
        @id = data["id"]
        @type = data["type"]
        @time = data["time"]
        @updated_time = data["updated_time"]
        @scratch = data["scratch"]
        @reference_id = data["reference_id"]
        @clock = data["clock"]
        @team_id = data["team_id"]
        @description = data["description"]
        @period = data["period"]
        @x = data["x"]
        @y = data["y"]
        @player_id = data["player_id"]
        @card = data["card"]
        @injury_time = data["injury_time"]
        @home_score = data["home_score"]
        @away_score = data["away_score"]
        @player_out_id = data["player_out_id"]
        @player_in_id = data["player_in_id"]
        @penalty = data["penalty"]
        @owngoal = data["owngoal"]
        @header = data["header"]
        @assist1_id = data["assist1_id"]
        @winner_id = data["winner_id"]
        @draw = data["draw"]
      end

      ## Fact Types
      # card
      # corner_kick
      # free_kick
      # game_resumed
      # goal
      # goal_kick
      # injury
      # injury_return
      # injury_time
      # keeper_save
      # match_ended
      # match_started
      # offside
      # penalty_awarded
      # penalty_missed
      # period_over
      # period_started
      # shot_blocked
      # shot_off_target
      # shot_on_target
      # substitution
      # throwin
    end
  end
end

Version data entries

222 entries across 222 versions & 1 rubygems

Version Path
sportradar-api-0.13.4 lib/sportradar/api/soccer-old/fact.rb
sportradar-api-0.13.3 lib/sportradar/api/soccer-old/fact.rb
sportradar-api-0.13.2 lib/sportradar/api/soccer-old/fact.rb
sportradar-api-0.13.1 lib/sportradar/api/soccer-old/fact.rb
sportradar-api-0.13.0 lib/sportradar/api/soccer-old/fact.rb
sportradar-api-0.12.3 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.12.2 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.12.1 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.12.0 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.11.69 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.11.68 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.11.67 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.11.66 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.11.65 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.11.64 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.11.63 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.11.62 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.11.61 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.11.60 lib/sportradar/api/soccer/fact.rb
sportradar-api-0.11.59 lib/sportradar/api/soccer/fact.rb