Class: CodebrekerManfly::User
- Inherits:
-
ValidatableEntity
- Object
- ValidatableEntity
- CodebrekerManfly::User
- Defined in:
- lib/codebreker_manfly/entities/user.rb
Constant Summary collapse
- USERNAME_MIN_LENGTH =
3
- USERNAME_MAX_LENGTH =
20
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from ValidatableEntity
Instance Method Summary collapse
-
#initialize(name) ⇒ User
constructor
A new instance of User.
Methods inherited from ValidatableEntity
Methods included from Validator
#valid_class?, #valid_non_empty_string?, #valid_non_negative_integer?, #valid_only_numeric_string?, #valid_positive_integer?, #valid_range?, #valid_string_max_length?, #valid_string_min_length?
Constructor Details
#initialize(name) ⇒ User
Returns a new instance of User.
10 11 12 13 |
# File 'lib/codebreker_manfly/entities/user.rb', line 10 def initialize(name) super() @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/codebreker_manfly/entities/user.rb', line 5 def name @name end |