Class: Codebreaker::User
- Inherits:
-
Object
- Object
- Codebreaker::User
- Extended by:
- Validations
- Defined in:
- lib/codebreaker/user.rb
Constant Summary
Constants included from Validations
Validations::ERROR_GUESS, Validations::ERROR_NAME, Validations::MAX_LENGTH, Validations::MIN_LENGTH
Constants included from Constants::Shared
Constants::Shared::CORRECT_RANGE, Constants::Shared::LENGTH_GOOD, Constants::Shared::REGULAR_FOR_CODE, Constants::Shared::TYPE_OF_DIFFICULTY, Constants::Shared::WINNING_INDEX
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ User
constructor
A new instance of User.
Methods included from Validations
Constructor Details
#initialize(name) ⇒ User
Returns a new instance of User.
9 10 11 |
# File 'lib/codebreaker/user.rb', line 9 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/codebreaker/user.rb', line 7 def name @name end |