Exception: Postqueue::MissingHandler
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Postqueue::MissingHandler
- Defined in:
- lib/postqueue/queue/callback.rb
Instance Attribute Summary collapse
-
#entity_ids ⇒ Object
readonly
Returns the value of attribute entity_ids.
-
#op ⇒ Object
readonly
Returns the value of attribute op.
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
Instance Method Summary collapse
-
#initialize(queue:, op:, entity_ids:) ⇒ MissingHandler
constructor
A new instance of MissingHandler.
- #to_s ⇒ Object
Constructor Details
#initialize(queue:, op:, entity_ids:) ⇒ MissingHandler
Returns a new instance of MissingHandler.
5 6 7 8 9 |
# File 'lib/postqueue/queue/callback.rb', line 5 def initialize(queue:, op:, entity_ids:) @queue = queue @op = op @entity_ids = entity_ids end |
Instance Attribute Details
#entity_ids ⇒ Object (readonly)
Returns the value of attribute entity_ids.
3 4 5 |
# File 'lib/postqueue/queue/callback.rb', line 3 def entity_ids @entity_ids end |
#op ⇒ Object (readonly)
Returns the value of attribute op.
3 4 5 |
# File 'lib/postqueue/queue/callback.rb', line 3 def op @op end |
#queue ⇒ Object (readonly)
Returns the value of attribute queue.
3 4 5 |
# File 'lib/postqueue/queue/callback.rb', line 3 def queue @queue end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/postqueue/queue/callback.rb', line 11 def to_s "#{queue.item_class.table_name}: Unknown operation #{op.inspect} with #{entity_ids.count} entities" end |