Class: Codebreakergem::User
- Inherits:
-
Object
- Object
- Codebreakergem::User
- Includes:
- Checker
- Defined in:
- lib/classes/user.rb
Constant Summary
Constants included from Checker
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ User
constructor
A new instance of User.
- #valid? ⇒ Boolean
Methods included from Checker
Constructor Details
#initialize(name) ⇒ User
Returns a new instance of User.
9 10 11 |
# File 'lib/classes/user.rb', line 9 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/classes/user.rb', line 7 def name @name end |
Instance Method Details
#valid? ⇒ Boolean
13 14 15 |
# File 'lib/classes/user.rb', line 13 def valid? validate_string_length(name) end |