Class: Chartmogul::Enrichment::CustomAttribute

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

Instance Attribute Summary

Attributes inherited from Base

#customer_uuid

Instance Method Summary collapse

Methods inherited from Base

method_missing

Instance Method Details

#create(attribute:, customer_uuid: nil, email: nil) ⇒ Object


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

def create(attribute:, customer_uuid: nil, email: nil)
  (customer_uuid, email, attribute)
end

#delete(customer_uuid:, attribute:) ⇒ Object


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

def delete(customer_uuid:, attribute:)
  (customer_uuid, attribute)
end

#update(customer_uuid:, attribute:) ⇒ Object


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

def update(customer_uuid:, attribute:)
  set_customer_uuid(customer_uuid)
  update_resource(custom: attribute)
end