Class: ConnectN::Player
- Inherits:
-
Object
- Object
- ConnectN::Player
- Defined in:
- lib/connect_n/player/player.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#disc ⇒ Object
Returns the value of attribute disc.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, disc:) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(name:, disc:) ⇒ Player
Returns a new instance of Player.
7 8 9 10 |
# File 'lib/connect_n/player/player.rb', line 7 def initialize(name:, disc:) @name = name @disc = disc end |
Instance Attribute Details
#disc ⇒ Object
Returns the value of attribute disc.
5 6 7 |
# File 'lib/connect_n/player/player.rb', line 5 def disc @disc end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/connect_n/player/player.rb', line 5 def name @name end |