Class: FatFreeCRM::Cloudfuji::EventObservers::CustomerObserver
- Inherits:
-
Cloudfuji::EventObserver
- Object
- Cloudfuji::EventObserver
- FatFreeCRM::Cloudfuji::EventObservers::CustomerObserver
- Includes:
- Base
- Defined in:
- lib/fat_free_crm/cloudfuji/event_observers/customer_observer.rb
Instance Method Summary collapse
-
#customer_created ⇒ Object
“customer_created” :account_balance => 0 :object => “customer” :email => “[email protected]” :created => 1332269951 :id => “cus_cpkg4h0KfLD3lp” :livemode => true :human => “Customer CREATED (cus_cpkg4h0KfLD3lp), [email protected]”}.
- #customer_signed_up ⇒ Object
Methods included from Base
#find_lead_by_data, #find_or_create_activity_subject!
Instance Method Details
#customer_created ⇒ Object
“customer_created” :account_balance => 0 :object => “customer” :email => “[email protected]” :created => 1332269951 :id => “cus_cpkg4h0KfLD3lp” :livemode => true :human => “Customer CREATED (cus_cpkg4h0KfLD3lp), [email protected]”}
15 16 17 |
# File 'lib/fat_free_crm/cloudfuji/event_observers/customer_observer.rb', line 15 def customer_created note_customer_activity("#{data['email']} created as a customer with external id #{data['id']}") if data['livemode'] end |
#customer_signed_up ⇒ Object
19 20 21 |
# File 'lib/fat_free_crm/cloudfuji/event_observers/customer_observer.rb', line 19 def customer_signed_up note_customer_activity("#{data['first_name']} #{data['last_name']} (#{data['email']}) signed up as a customer") end |