lib/sportradar/api/soccer/fact.rb in sportradar-api-0.1.4 vs lib/sportradar/api/soccer/fact.rb in sportradar-api-0.1.5

- old
+ new

@@ -1,12 +1,13 @@ module Sportradar module Api - class Soccer::Fact + 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"] @@ -28,10 +29,9 @@ @owngoal = data["owngoal"] @header = data["header"] @assist1_id = data["assist1_id"] @winner_id = data["winner_id"] @draw = data["draw"] - @response = data end ## Fact Types # card # corner_kick