Class: BeforeGame::RegistrationPlayer
- Inherits:
-
Object
- Object
- BeforeGame::RegistrationPlayer
- Defined in:
- lib/codebreaker/before_game/registration_player.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:) ⇒ RegistrationPlayer
constructor
A new instance of RegistrationPlayer.
Constructor Details
#initialize(name:) ⇒ RegistrationPlayer
Returns a new instance of RegistrationPlayer.
7 8 9 10 |
# File 'lib/codebreaker/before_game/registration_player.rb', line 7 def initialize(name:) Validation::Registration.validation(name: name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/codebreaker/before_game/registration_player.rb', line 5 def name @name end |