Class: Beanstalker::FakeConn

Inherits:
Object
  • Object
show all
Defined in:
lib/beanstalker/queue.rb

Instance Method Summary collapse

Instance Method Details

#addrObject



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