Class: YankeeScore::Team

Inherits:
Object
  • Object
show all
Defined in:
lib/yankee_score/team.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/yankee_score/team.rb', line 2

def name
  @name
end

#runsObject

Returns the value of attribute runs.



2
3
4
# File 'lib/yankee_score/team.rb', line 2

def runs
  @runs
end