Module: Eventboss::Listener
- Defined in:
- lib/eventboss/listener.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- ACTIVE_LISTENERS =
{}
Instance Attribute Summary collapse
-
#postponed_by ⇒ Object
readonly
Returns the value of attribute postponed_by.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#postponed_by ⇒ Object (readonly)
Returns the value of attribute postponed_by.
13 14 15 |
# File 'lib/eventboss/listener.rb', line 13 def postponed_by @postponed_by end |
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/eventboss/listener.rb', line 5 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#jid ⇒ Object
9 10 11 |
# File 'lib/eventboss/listener.rb', line 9 def jid @jid ||= SecureRandom.uuid end |
#postpone_by(time_in_secs) ⇒ Object
15 16 17 |
# File 'lib/eventboss/listener.rb', line 15 def postpone_by(time_in_secs) @postponed_by = time_in_secs.to_i end |