Class: ChartMogul::Customers

Inherits:
APIResource show all
Includes:
API::Actions::Custom, ChartMogul::Concerns::Entries, ChartMogul::Concerns::Pageable, ChartMogul::Concerns::Pageable2
Defined in:
lib/chartmogul/customer.rb

Class Method Summary collapse

Methods included from ChartMogul::Concerns::Pageable2

included

Methods included from ChartMogul::Concerns::Pageable

included

Methods included from API::Actions::Custom

#custom!, #custom_without_assign!, included

Methods included from ChartMogul::Concerns::Entries

included

Methods inherited from APIResource

connection, handle_other_error, handle_request_error, handling_errors, set_resource_name, set_resource_path, set_resource_root_key

Class Method Details

.search(email, options = {}) ⇒ Object



151
152
153
154
# File 'lib/chartmogul/customer.rb', line 151

def self.search(email, options = {})
  path = ChartMogul::ResourcePath.new('/v1/customers/search')
  custom!(:get, path.apply_with_get_params(options.merge(email: email)))
end