Class: YankeeScore::Team
- Inherits:
-
Object
- Object
- YankeeScore::Team
- Defined in:
- lib/yankee_score/team.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#runs ⇒ Object
Returns the value of attribute runs.
Instance Method Summary collapse
-
#initialize(name) ⇒ Team
constructor
A new instance of Team.
Constructor Details
#initialize(name) ⇒ Team
Returns a new instance of Team.
5 6 7 |
# File 'lib/yankee_score/team.rb', line 5 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/yankee_score/team.rb', line 2 def name @name end |
#runs ⇒ Object
Returns the value of attribute runs.
2 3 4 |
# File 'lib/yankee_score/team.rb', line 2 def runs @runs end |