Class: Adamantite::GUI::Request::SetMasterPasswordRequest
- Inherits:
-
Object
- Object
- Adamantite::GUI::Request::SetMasterPasswordRequest
- Defined in:
- lib/gui/request/set_master_password_request.rb
Instance Attribute Summary collapse
-
#new_master_pw ⇒ Object
Returns the value of attribute new_master_pw.
-
#new_master_pw_confirmation ⇒ Object
Returns the value of attribute new_master_pw_confirmation.
-
#success ⇒ Object
Returns the value of attribute success.
Instance Method Summary collapse
Instance Attribute Details
#new_master_pw ⇒ Object
Returns the value of attribute new_master_pw.
9 10 11 |
# File 'lib/gui/request/set_master_password_request.rb', line 9 def new_master_pw @new_master_pw end |
#new_master_pw_confirmation ⇒ Object
Returns the value of attribute new_master_pw_confirmation.
9 10 11 |
# File 'lib/gui/request/set_master_password_request.rb', line 9 def new_master_pw_confirmation @new_master_pw_confirmation end |
#success ⇒ Object
Returns the value of attribute success.
9 10 11 |
# File 'lib/gui/request/set_master_password_request.rb', line 9 def success @success end |
Instance Method Details
#set_master_password! ⇒ Object
11 12 13 14 15 |
# File 'lib/gui/request/set_master_password_request.rb', line 11 def set_master_password! @success = false adamantite = Base::Adamantite.new(@new_master_pw) @success = adamantite.serialize_master_password(@new_master_pw, @new_master_pw_confirmation) end |