Class: Nurego::PasswordReset
- Inherits:
-
APIResource
- Object
- NuregoObject
- APIResource
- Nurego::PasswordReset
- Defined in:
- lib/nurego/password_reset.rb
Instance Attribute Summary
Attributes inherited from NuregoObject
Instance Method Summary collapse
Methods included from Auth
change_password, login, logout
Methods included from APIOperations::List
Methods included from APIOperations::Delete
Methods included from APIOperations::Create
Methods inherited from APIResource
class_name, #refresh, retrieve, url, #url
Methods inherited from NuregoObject
#[], #[]=, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from Nurego::NuregoObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Nurego::NuregoObject
Instance Method Details
#complete(params) ⇒ Object
9 10 11 12 |
# File 'lib/nurego/password_reset.rb', line 9 def complete(params) Nurego::Auth.change_password(self.customer_id, params[:password], params[:current_password]) self end |