Sha256: 2801e445758ec5a63bb5d8c9c9a3f86b0f1fc59914aa20bfcbc3cf0d88654ba5
Contents?: true
Size: 760 Bytes
Versions: 1
Compression:
Stored size: 760 Bytes
Contents
module Bling class Subscriber include Omnes::Subscriber handle :order_finalized, with: :send_order_to_bling, id: :send_order_to_bling handle :erp_products_updated, with: :products_updated, id: :products_updated handle :erp_contato_created, with: :contato_created, id: :contato_created def send_order_to_bling event method = __method__.to_s ErpOrderJob.perform_later(event: event, method_name: method) end def contato_created event method = __method__.to_s ErpContactJob.perform_later(event: event, method_name: method) end def products_updated event method = __method__.to_s ErpProductJob.perform_later(event: event, method_name: method) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_bling-1.0.2 | app/subscribers/bling/subscriber.rb |