Class: Vk::API::Account::Methods::ChangePassword
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Account::Methods::ChangePassword
- Defined in:
- lib/vk/api/account/methods/change_password.rb
Overview
Changes a user password after access is successfully restored with the method.
Arguments collapse
-
#change_password_hash ⇒ String
Hash received after a successful OAuth authorization with a code got by SMS.; (If the password is changed right after the access was restored).
-
#new_password ⇒ String
New password that will be set as a current.
-
#old_password ⇒ String
Current user password.
-
#restore_sid ⇒ String
Session id received after the method is executed.; (If the password is changed right after the access was restored).
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Account::Methods::ChangePassword
|
# File 'lib/vk/api/account/methods/change_password.rb', line 15
|
Instance Method Details
#change_password_hash ⇒ String
Returns Hash received after a successful OAuth authorization with a code got by SMS.; (If the password is changed right after the access was restored).
28 |
# File 'lib/vk/api/account/methods/change_password.rb', line 28 attribute :change_password_hash, API::Types::Coercible::String.optional.default(nil) |
#new_password ⇒ String
Returns New password that will be set as a current.
32 |
# File 'lib/vk/api/account/methods/change_password.rb', line 32 attribute :new_password, API::Types::Coercible::String |