Class: Codebreaker::User
- Inherits:
-
Object
- Object
- Codebreaker::User
- Extended by:
- Validation
- Includes:
- Valid
- Defined in:
- lib/user.rb
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 Validation
Methods included from Valid
Constructor Details
#initialize(name) ⇒ User
Returns a new instance of User.
12 13 14 15 |
# File 'lib/user.rb', line 12 def initialize(name) @name = name validate! end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/user.rb', line 8 def name @name end |