Class: Sportradar::Api::Soccer::Fact

Inherits:
Data
  • Object
show all
Defined in:
lib/sportradar/api/soccer/fact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Data

#all_attributes, #attributes, #create_data, #parse_into_array, #parse_into_array_with_options, #parse_out_hashes, #structure_links, #update_data

Constructor Details

#initialize(data) ⇒ Fact

Returns a new instance of Fact.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/sportradar/api/soccer/fact.rb', line 8

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

Instance Attribute Details

#assist1_idObject (readonly)

Returns the value of attribute assist1_id.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def assist1_id
  @assist1_id
end

#away_scoreObject (readonly)

Returns the value of attribute away_score.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def away_score
  @away_score
end

#cardObject (readonly)

Returns the value of attribute card.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def card
  @card
end

#clockObject (readonly)

Returns the value of attribute clock.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def clock
  @clock
end

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def description
  @description
end

#drawObject (readonly)

Returns the value of attribute draw.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def draw
  @draw
end

#headerObject (readonly)

Returns the value of attribute header.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def header
  @header
end

#home_scoreObject (readonly)

Returns the value of attribute home_score.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def home_score
  @home_score
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def id
  @id
end

#injury_timeObject (readonly)

Returns the value of attribute injury_time.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def injury_time
  @injury_time
end

#owngoalObject (readonly)

Returns the value of attribute owngoal.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def owngoal
  @owngoal
end

#penaltyObject (readonly)

Returns the value of attribute penalty.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def penalty
  @penalty
end

#periodObject (readonly)

Returns the value of attribute period.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def period
  @period
end

#player_idObject (readonly)

Returns the value of attribute player_id.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def player_id
  @player_id
end

#player_in_idObject (readonly)

Returns the value of attribute player_in_id.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def player_in_id
  @player_in_id
end

#player_out_idObject (readonly)

Returns the value of attribute player_out_id.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def player_out_id
  @player_out_id
end

#reference_idObject (readonly)

Returns the value of attribute reference_id.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def reference_id
  @reference_id
end

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def response
  @response
end

#scratchObject (readonly)

Returns the value of attribute scratch.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def scratch
  @scratch
end

#team_idObject (readonly)

Returns the value of attribute team_id.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def team_id
  @team_id
end

#timeObject (readonly)

Returns the value of attribute time.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def time
  @time
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def type
  @type
end

#updated_timeObject (readonly)

Returns the value of attribute updated_time.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def updated_time
  @updated_time
end

#winner_idObject (readonly)

Returns the value of attribute winner_id.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def winner_id
  @winner_id
end

#xObject (readonly)

Returns the value of attribute x.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



6
7
8
# File 'lib/sportradar/api/soccer/fact.rb', line 6

def y
  @y
end