Class: Beanstalker::FakeConn
- Inherits:
-
Object
- Object
- Beanstalker::FakeConn
- Defined in:
- lib/beanstalker/queue.rb
Instance Method Summary collapse
- #addr ⇒ Object
- #bury(x, y) ⇒ Object
- #delete(x) ⇒ Object
- #job_stats(id) ⇒ Object
- #release(x, y, z) ⇒ Object
Instance Method Details
#addr ⇒ Object
113 114 115 |
# File 'lib/beanstalker/queue.rb', line 113 def addr '<none>' end |
#bury(x, y) ⇒ Object
110 111 |
# File 'lib/beanstalker/queue.rb', line 110 def bury(x, y) end |
#delete(x) ⇒ Object
104 105 |
# File 'lib/beanstalker/queue.rb', line 104 def delete(x) end |
#job_stats(id) ⇒ Object
117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/beanstalker/queue.rb', line 117 def job_stats(id) { 'id' => id, 'state' => 'reserved', 'age' => 0, 'delay' => 0, 'time-left' => 5000, 'timeouts' => 0, 'releases' => 0, 'buries' => 0, 'kicks' => 0, } end |
#release(x, y, z) ⇒ Object
107 108 |
# File 'lib/beanstalker/queue.rb', line 107 def release(x, y, z) end |