circleci
11 of 605 relevant lines covered (1.82%)
0.02 hits per line
1 |
class PlumEventHandler |
× |
2 |
include Sneakers::Worker |
× |
3 |
from_queue :pomegranate
|
× |
4 |
|
× |
5 |
def work(msg) |
× |
6 |
msg = JSON.parse(msg)
|
× |
7 |
result = PlumEventProcessor.new(msg).process
|
× |
8 |
if result
|
× |
9 |
ack! |
× |
10 |
else
|
× |
11 |
reject! |
× |
12 |
end
|
× |
13 |
end
|
× |
14 |
end
|
× |