circleci
15 of 15 new or added lines in 1 file covered. (100.0%)
2560 of 2824 relevant lines covered (90.65%)
2556.8 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
3 |
class EventProcessor |
× |
4 |
class Processor |
× |
5 |
attr_reader :event
|
× |
6 |
def initialize(event) |
× |
7 |
@event = event
|
× |
8 |
end
|
× |
9 |
|
|
10 |
private |
× |
11 |
|
|
12 |
def event_type |
× |
13 |
event['event']
|
× |
14 |
end
|
× |
15 |
|
|
16 |
def id |
× |
17 |
event['id']
|
× |
18 |
end
|
× |
19 |
|
|
20 |
def doc |
× |
21 |
event['doc']
|
× |
22 |
end
|
× |
23 |
|
|
24 |
def bulk? |
× |
25 |
event['bulk'] == 'true' |
× |
26 |
end
|
× |
27 |
|
|
28 |
def index |
× |
29 |
Blacklight.default_index.connection
|
× |
30 |
end
|
× |
31 |
end
|
× |
32 |
end
|
× |