Class: Frostbitten::Score
- Inherits:
-
Object
- Object
- Frostbitten::Score
- Defined in:
- lib/frostbitten/score.rb
Instance Attribute Summary collapse
-
#team_one ⇒ Object
Returns the value of attribute team_one.
-
#team_two ⇒ Object
Returns the value of attribute team_two.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(scores) ⇒ Score
constructor
A new instance of Score.
Constructor Details
#initialize(scores) ⇒ Score
Returns a new instance of Score.
16 17 18 19 |
# File 'lib/frostbitten/score.rb', line 16 def initialize(scores) self.team_one = scores[0].to_i self.team_two = scores[1].to_i end |
Instance Attribute Details
#team_one ⇒ Object
Returns the value of attribute team_one.
4 5 6 |
# File 'lib/frostbitten/score.rb', line 4 def team_one @team_one end |
#team_two ⇒ Object
Returns the value of attribute team_two.
4 5 6 |
# File 'lib/frostbitten/score.rb', line 4 def team_two @team_two end |