Class: Webhookdb::Jobs::CustomerCreatedNotifyInternal
- Inherits:
-
Object
- Object
- Webhookdb::Jobs::CustomerCreatedNotifyInternal
- Extended by:
- Async::Job
- Defined in:
- lib/webhookdb/jobs/customer_created_notify_internal.rb
Instance Method Summary collapse
Methods included from Async::Job
Instance Method Details
#_perform(event) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/webhookdb/jobs/customer_created_notify_internal.rb', line 10 def _perform(event) customer = self.lookup_model(Webhookdb::Customer, event) Webhookdb::DeveloperAlert.new( subsystem: "Customer Created", emoji: ":hook:", fallback: "New customer created: #{customer.inspect}", fields: [ {title: "Id", value: customer.id, short: true}, {title: "Email", value: customer.email, short: true}, ], ).emit end |