Class: Sportradar::Api::Soccer::Fact
- Defined in:
- lib/sportradar/api/soccer/fact.rb
Instance Attribute Summary collapse
-
#assist1_id ⇒ Object
readonly
Returns the value of attribute assist1_id.
-
#away_score ⇒ Object
readonly
Returns the value of attribute away_score.
-
#card ⇒ Object
readonly
Returns the value of attribute card.
-
#clock ⇒ Object
readonly
Returns the value of attribute clock.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#draw ⇒ Object
readonly
Returns the value of attribute draw.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#home_score ⇒ Object
readonly
Returns the value of attribute home_score.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#injury_time ⇒ Object
readonly
Returns the value of attribute injury_time.
-
#owngoal ⇒ Object
readonly
Returns the value of attribute owngoal.
-
#penalty ⇒ Object
readonly
Returns the value of attribute penalty.
-
#period ⇒ Object
readonly
Returns the value of attribute period.
-
#player_id ⇒ Object
readonly
Returns the value of attribute player_id.
-
#player_in_id ⇒ Object
readonly
Returns the value of attribute player_in_id.
-
#player_out_id ⇒ Object
readonly
Returns the value of attribute player_out_id.
-
#reference_id ⇒ Object
readonly
Returns the value of attribute reference_id.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#scratch ⇒ Object
readonly
Returns the value of attribute scratch.
-
#team_id ⇒ Object
readonly
Returns the value of attribute team_id.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#updated_time ⇒ Object
readonly
Returns the value of attribute updated_time.
-
#winner_id ⇒ Object
readonly
Returns the value of attribute winner_id.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(data) ⇒ Fact
constructor
A new instance of Fact.
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_id ⇒ Object (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_score ⇒ Object (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 |
#card ⇒ Object (readonly)
Returns the value of attribute card.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def card @card end |
#clock ⇒ Object (readonly)
Returns the value of attribute clock.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def clock @clock end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def description @description end |
#draw ⇒ Object (readonly)
Returns the value of attribute draw.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def draw @draw end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def header @header end |
#home_score ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def id @id end |
#injury_time ⇒ Object (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 |
#owngoal ⇒ Object (readonly)
Returns the value of attribute owngoal.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def owngoal @owngoal end |
#penalty ⇒ Object (readonly)
Returns the value of attribute penalty.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def penalty @penalty end |
#period ⇒ Object (readonly)
Returns the value of attribute period.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def period @period end |
#player_id ⇒ Object (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_id ⇒ Object (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_id ⇒ Object (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_id ⇒ Object (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 |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def response @response end |
#scratch ⇒ Object (readonly)
Returns the value of attribute scratch.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def scratch @scratch end |
#team_id ⇒ Object (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 |
#time ⇒ Object (readonly)
Returns the value of attribute time.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def time @time end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def type @type end |
#updated_time ⇒ Object (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_id ⇒ Object (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 |
#x ⇒ Object (readonly)
Returns the value of attribute x.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
6 7 8 |
# File 'lib/sportradar/api/soccer/fact.rb', line 6 def y @y end |