Class: SpielplanSaar::TableEntry
- Inherits:
-
Struct
- Object
- Struct
- SpielplanSaar::TableEntry
- Defined in:
- lib/spielplan_saar/table_entry.rb,
lib/spielplan_saar/table_entry.rb
Instance Attribute Summary collapse
-
#difference ⇒ Object
Returns the value of attribute difference.
-
#games ⇒ Object
Returns the value of attribute games.
-
#goals ⇒ Object
Returns the value of attribute goals.
-
#points ⇒ Object
Returns the value of attribute points.
-
#position ⇒ Object
Returns the value of attribute position.
-
#team ⇒ Object
Returns the value of attribute team.
Class Method Summary collapse
Instance Attribute Details
#difference ⇒ Object
Returns the value of attribute difference
2 3 4 |
# File 'lib/spielplan_saar/table_entry.rb', line 2 def difference @difference end |
#games ⇒ Object
Returns the value of attribute games
2 3 4 |
# File 'lib/spielplan_saar/table_entry.rb', line 2 def games @games end |
#goals ⇒ Object
Returns the value of attribute goals
2 3 4 |
# File 'lib/spielplan_saar/table_entry.rb', line 2 def goals @goals end |
#points ⇒ Object
Returns the value of attribute points
2 3 4 |
# File 'lib/spielplan_saar/table_entry.rb', line 2 def points @points end |
#position ⇒ Object
Returns the value of attribute position
2 3 4 |
# File 'lib/spielplan_saar/table_entry.rb', line 2 def position @position end |
#team ⇒ Object
Returns the value of attribute team
2 3 4 |
# File 'lib/spielplan_saar/table_entry.rb', line 2 def team @team end |
Class Method Details
.parse(row_node) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/spielplan_saar/table_entry.rb', line 6 def self.parse(row_node) position = inner_text_at_position(row_node, 1) team = inner_text_at_position(row_node, 2) games = inner_text_at_position(row_node, 3) points = inner_text_at_position(row_node, 4) goals = inner_text_at_position(row_node, 5) difference = inner_text_at_position(row_node, 6) self.new(position, team, games, points, goals, difference) end |