Class: Nurego::PasswordReset

Inherits:
APIResource show all
Includes:
APIOperations::Create, APIOperations::Delete, APIOperations::List, Auth
Defined in:
lib/nurego/password_reset.rb

Instance Attribute Summary

Attributes inherited from NuregoObject

#api_key

Instance Method Summary collapse

Methods included from Auth

change_password, login, logout

Methods included from APIOperations::List

included

Methods included from APIOperations::Delete

#delete

Methods included from APIOperations::Create

included

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