Class: FlexCommerce::PasswordRecovery

Inherits:
FlexCommerceApi::ApiBase show all
Defined in:
app/models/password_recovery.rb

Overview

A flex commerce Password Recovery model

This model provides access to the flex commerce customer account password recovery functionality. It is used much like an active record model.

Constant Summary

Constants inherited from FlexCommerceApi::BaseResource

FlexCommerceApi::BaseResource::PRIVATE_ATTRIBUTES, FlexCommerceApi::BaseResource::RELATED_META_RESOURCES

Class Method Summary collapse

Methods inherited from FlexCommerceApi::ApiBase

endpoint_version

Methods inherited from FlexCommerceApi::BaseResource

all, append_version, #as_json_api, capture_surrogate_keys, create!, endpoint_version, find, find_all, #freeze, #initialize, load, #meta_attribute, #method_missing, paginate, password, #public_attributes, reconfigure, reconfigure_all, reconfigure_api_base, reload_connection_if_required, #save!, username

Constructor Details

This class inherits a constructor from FlexCommerceApi::BaseResource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FlexCommerceApi::BaseResource

Class Method Details

.path(params, *args) ⇒ Object



12
13
14
15
16
17
18
# File 'app/models/password_recovery.rb', line 12

def self.path(params, *args)
  # Since it is singletone resource, use singular name in path and remove id
  params.delete(:id)
  path = super.gsub(table_name, resource_name)
  params.delete(:customer_account_id)
  path
end