Class: Infostrada::Goals
- Inherits:
-
Object
- Object
- Infostrada::Goals
- Defined in:
- lib/infostrada/match.rb
Instance Attribute Summary collapse
-
#away_goals ⇒ Object
Returns the value of attribute away_goals.
-
#away_goals_150_mins ⇒ Object
Returns the value of attribute away_goals_150_mins.
-
#away_goals_90_mins ⇒ Object
Returns the value of attribute away_goals_90_mins.
-
#away_goals_half_time ⇒ Object
Returns the value of attribute away_goals_half_time.
-
#away_goals_shootout ⇒ Object
Returns the value of attribute away_goals_shootout.
-
#home_goals ⇒ Object
Returns the value of attribute home_goals.
-
#home_goals_105_mins ⇒ Object
Returns the value of attribute home_goals_105_mins.
-
#home_goals_90_mins ⇒ Object
Returns the value of attribute home_goals_90_mins.
-
#home_goals_half_time ⇒ Object
Returns the value of attribute home_goals_half_time.
-
#home_goals_shootout ⇒ Object
Returns the value of attribute home_goals_shootout.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Goals
constructor
A new instance of Goals.
Constructor Details
#initialize(hash) ⇒ Goals
Returns a new instance of Goals.
172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/infostrada/match.rb', line 172 def initialize(hash) @home_goals = hash['n_HomeGoals'] @away_goals = hash['n_AwayGoals'] @home_goals_half_time = hash['n_HomeGoalsHalftime'] @away_goals_half_time = hash['n_AwayGoalsHalftime'] @home_goals_90_mins = hash['n_HomeGoals90mins'] @away_goals_90_mins = hash['n_AwayGoals90mins'] @home_goals_105_mins = hash['n_HomeGoals105mins'] @away_goals_105_mins = hash['n_AwayGoals105mins'] @home_goals_shootout = hash['n_HomeGoalsShootout'] @away_goald_shootout = hash['n_AwayGoalsShootout'] end |
Instance Attribute Details
#away_goals ⇒ Object
Returns the value of attribute away_goals.
168 169 170 |
# File 'lib/infostrada/match.rb', line 168 def away_goals @away_goals end |
#away_goals_150_mins ⇒ Object
Returns the value of attribute away_goals_150_mins.
168 169 170 |
# File 'lib/infostrada/match.rb', line 168 def away_goals_150_mins @away_goals_150_mins end |
#away_goals_90_mins ⇒ Object
Returns the value of attribute away_goals_90_mins.
168 169 170 |
# File 'lib/infostrada/match.rb', line 168 def away_goals_90_mins @away_goals_90_mins end |
#away_goals_half_time ⇒ Object
Returns the value of attribute away_goals_half_time.
168 169 170 |
# File 'lib/infostrada/match.rb', line 168 def away_goals_half_time @away_goals_half_time end |
#away_goals_shootout ⇒ Object
Returns the value of attribute away_goals_shootout.
168 169 170 |
# File 'lib/infostrada/match.rb', line 168 def away_goals_shootout @away_goals_shootout end |
#home_goals ⇒ Object
Returns the value of attribute home_goals.
168 169 170 |
# File 'lib/infostrada/match.rb', line 168 def home_goals @home_goals end |
#home_goals_105_mins ⇒ Object
Returns the value of attribute home_goals_105_mins.
168 169 170 |
# File 'lib/infostrada/match.rb', line 168 def home_goals_105_mins @home_goals_105_mins end |
#home_goals_90_mins ⇒ Object
Returns the value of attribute home_goals_90_mins.
168 169 170 |
# File 'lib/infostrada/match.rb', line 168 def home_goals_90_mins @home_goals_90_mins end |
#home_goals_half_time ⇒ Object
Returns the value of attribute home_goals_half_time.
168 169 170 |
# File 'lib/infostrada/match.rb', line 168 def home_goals_half_time @home_goals_half_time end |
#home_goals_shootout ⇒ Object
Returns the value of attribute home_goals_shootout.
168 169 170 |
# File 'lib/infostrada/match.rb', line 168 def home_goals_shootout @home_goals_shootout end |