Class: Harvest::API::Users
- Includes:
- Behavior::Activatable, Behavior::Crud
- Defined in:
- lib/harvest/api/users.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#reset_password(user) ⇒ Harvest::User
Triggers Harvest to reset the user’s password and sends them an email to change it.
Methods included from Behavior::Activatable
Methods included from Behavior::Crud
#all, #create, #delete, #find, #update
Methods inherited from Base
Constructor Details
This class inherits a constructor from Harvest::API::Base
Instance Method Details
#reset_password(id) ⇒ Harvest::User #reset_password(user) ⇒ Harvest::User
Triggers Harvest to reset the user’s password and sends them an email to change it.
15 16 17 18 |
# File 'lib/harvest/api/users.rb', line 15 def reset_password(user) request(:post, credentials, "#{api_model.api_path}/#{user.to_i}/reset_password") user end |