Class: RockQueue::Beanstalkd
- Inherits:
-
Object
- Object
- RockQueue::Beanstalkd
- Defined in:
- lib/rock-queue/adapters/beanstalkd.rb
Instance Attribute Summary collapse
-
#obj ⇒ Object
readonly
Returns the value of attribute obj.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Beanstalkd
constructor
A new instance of Beanstalkd.
- #pop ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Beanstalkd
Returns a new instance of Beanstalkd.
13 14 15 |
# File 'lib/rock-queue/adapters/beanstalkd.rb', line 13 def initialize( = {}) @obj = Beanstalk::Pool.new(["#{[:server]}:#{[:port]}"]) end |
Instance Attribute Details
#obj ⇒ Object (readonly)
Returns the value of attribute obj.
11 12 13 |
# File 'lib/rock-queue/adapters/beanstalkd.rb', line 11 def obj @obj end |
Instance Method Details
#pop ⇒ Object
17 18 19 |
# File 'lib/rock-queue/adapters/beanstalkd.rb', line 17 def pop loop end |