Class: QProcessor::BeanstalkMessage
- Defined in:
- lib/qprocessor/beanstalk_message.rb
Instance Attribute Summary
Attributes inherited from Message
Instance Method Summary collapse
-
#dispose ⇒ Object
Disposes of the underlying job, deleting it from Beanstalk.
-
#id ⇒ Object
Retrieve the message identifier.
-
#initialize(source) ⇒ BeanstalkMessage
constructor
A new instance of BeanstalkMessage.
-
#release ⇒ Object
Releases the job back to Beanstalk.
Methods inherited from Message
Constructor Details
#initialize(source) ⇒ BeanstalkMessage
Returns a new instance of BeanstalkMessage.
5 6 7 |
# File 'lib/qprocessor/beanstalk_message.rb', line 5 def initialize(source) super(source) end |
Instance Method Details
#dispose ⇒ Object
Disposes of the underlying job, deleting it from Beanstalk.
10 11 12 |
# File 'lib/qprocessor/beanstalk_message.rb', line 10 def dispose source.delete end |
#id ⇒ Object
Retrieve the message identifier.
15 16 17 |
# File 'lib/qprocessor/beanstalk_message.rb', line 15 def id source.id end |
#release ⇒ Object
Releases the job back to Beanstalk.
20 21 22 |
# File 'lib/qprocessor/beanstalk_message.rb', line 20 def release source.release end |