Sha256: f1362337e763ba75407e52f0723e92d1b24496889206aae41f8b4095d362c076
Contents?: true
Size: 556 Bytes
Versions: 13
Compression:
Stored size: 556 Bytes
Contents
module Eventboss module Listener ACTIVE_LISTENERS = {} def self.included(base) base.extend ClassMethods end def jid @jid ||= SecureRandom.uuid end attr_reader :postponed_by def postpone_by(time_in_secs) @postponed_by = time_in_secs.to_i end module ClassMethods def eventboss_options(opts) source_app = opts[:source_app] ? "#{opts[:source_app]}-" : "" event_name = opts[:event_name] ACTIVE_LISTENERS["#{source_app}#{event_name}"] = self end end end end
Version data entries
13 entries across 13 versions & 1 rubygems