Class: Chartmogul::Enrichment::Customer

Inherits:
Base
  • Object
show all
Defined in:
lib/chartmogul/enrichment/customer.rb

Instance Attribute Summary

Attributes inherited from Base

#customer_uuid

Instance Method Summary collapse

Methods inherited from Base

method_missing

Instance Method Details

#find(customer_uuid) ⇒ Object


8
9
10
11
# File 'lib/chartmogul/enrichment/customer.rb', line 8

def find(customer_uuid)
  set_customer_uuid(customer_uuid)
  Chartmogul.get_resource(resource_end_point)
end

#list(options = {}) ⇒ Object


4
5
6
# File 'lib/chartmogul/enrichment/customer.rb', line 4

def list(options = {})
  list_resource(options)
end

#search(email:) ⇒ Object


13
14
15
# File 'lib/chartmogul/enrichment/customer.rb', line 13

def search(email:)
  Chartmogul.get_resource(search_end_point, email: email)
end