Class: Codebreaker::User
- Inherits:
-
Object
- Object
- Codebreaker::User
- Includes:
- Validations
- Defined in:
- lib/codebreaker/user.rb
Constant Summary collapse
- NAME_SIZE =
(3..20).freeze
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ User
constructor
A new instance of User.
Methods included from Validations
#match_checker, #range_checker
Constructor Details
#initialize ⇒ User
Returns a new instance of User.
10 11 12 |
# File 'lib/codebreaker/user.rb', line 10 def initialize @errors = [] end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
6 7 8 |
# File 'lib/codebreaker/user.rb', line 6 def errors @errors end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/codebreaker/user.rb', line 6 def name @name end |