Class: CodebrekerManfly::User

Inherits:
ValidatableEntity show all
Defined in:
lib/codebreker_manfly/entities/user.rb

Constant Summary collapse

USERNAME_MIN_LENGTH =
3
USERNAME_MAX_LENGTH =
20

Instance Attribute Summary collapse

Attributes inherited from ValidatableEntity

#errors

Instance Method Summary collapse

Methods inherited from ValidatableEntity

#valid?

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

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/codebreker_manfly/entities/user.rb', line 5

def name
  @name
end