Class: Infostrada::TableEntry
- Inherits:
-
Object
- Object
- Infostrada::TableEntry
- Defined in:
- lib/infostrada/table.rb
Instance Attribute Summary collapse
-
#goals_against ⇒ Object
Returns the value of attribute goals_against.
-
#goals_for ⇒ Object
Returns the value of attribute goals_for.
-
#matches ⇒ Object
Returns the value of attribute matches.
-
#matches_drawn ⇒ Object
Returns the value of attribute matches_drawn.
-
#matches_lost ⇒ Object
Returns the value of attribute matches_lost.
-
#matches_won ⇒ Object
Returns the value of attribute matches_won.
-
#points ⇒ Object
Returns the value of attribute points.
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#team_id ⇒ Object
Returns the value of attribute team_id.
Instance Method Summary collapse
-
#initialize(hash) ⇒ TableEntry
constructor
A new instance of TableEntry.
Constructor Details
#initialize(hash) ⇒ TableEntry
Returns a new instance of TableEntry.
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/infostrada/table.rb', line 43 def initialize(hash) @team_id = hash['n_TeamID'] @rank = hash['n_RankSort'] @matches = hash['n_Matches'] @matches_won = hash['n_MatchesWon'] @matches_drawn = hash['n_MatchesDrawn'] @matches_lost = hash['n_MatchesLost'] @points = hash['n_Points'] @goals_for = hash['n_GoalsFor'] @goals_against = hash['n_GoalsAgainst'] end |
Instance Attribute Details
#goals_against ⇒ Object
Returns the value of attribute goals_against.
41 42 43 |
# File 'lib/infostrada/table.rb', line 41 def goals_against @goals_against end |
#goals_for ⇒ Object
Returns the value of attribute goals_for.
41 42 43 |
# File 'lib/infostrada/table.rb', line 41 def goals_for @goals_for end |
#matches ⇒ Object
Returns the value of attribute matches.
40 41 42 |
# File 'lib/infostrada/table.rb', line 40 def matches @matches end |
#matches_drawn ⇒ Object
Returns the value of attribute matches_drawn.
40 41 42 |
# File 'lib/infostrada/table.rb', line 40 def matches_drawn @matches_drawn end |
#matches_lost ⇒ Object
Returns the value of attribute matches_lost.
41 42 43 |
# File 'lib/infostrada/table.rb', line 41 def matches_lost @matches_lost end |
#matches_won ⇒ Object
Returns the value of attribute matches_won.
40 41 42 |
# File 'lib/infostrada/table.rb', line 40 def matches_won @matches_won end |
#points ⇒ Object
Returns the value of attribute points.
41 42 43 |
# File 'lib/infostrada/table.rb', line 41 def points @points end |
#rank ⇒ Object
Returns the value of attribute rank.
40 41 42 |
# File 'lib/infostrada/table.rb', line 40 def rank @rank end |
#team_id ⇒ Object
Returns the value of attribute team_id.
40 41 42 |
# File 'lib/infostrada/table.rb', line 40 def team_id @team_id end |