Class: PasswordChanger::User
- Inherits:
-
Object
- Object
- PasswordChanger::User
- Defined in:
- lib/password_changer/user.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#new_password ⇒ Object
Returns the value of attribute new_password.
-
#old_password ⇒ Object
readonly
Returns the value of attribute old_password.
Instance Method Summary collapse
-
#initialize(name:, old_password:, new_password:) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(name:, old_password:, new_password:) ⇒ User
Returns a new instance of User.
7 8 9 10 11 |
# File 'lib/password_changer/user.rb', line 7 def initialize(name:, old_password:, new_password:) @name = name @old_password = old_password @new_password = new_password end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/password_changer/user.rb', line 4 def name @name end |
#new_password ⇒ Object
Returns the value of attribute new_password.
5 6 7 |
# File 'lib/password_changer/user.rb', line 5 def new_password @new_password end |
#old_password ⇒ Object (readonly)
Returns the value of attribute old_password.
4 5 6 |
# File 'lib/password_changer/user.rb', line 4 def old_password @old_password end |