circleci
11 of 11 new or added lines in 1 file covered. (100.0%)
2081 of 2820 relevant lines covered (73.79%)
15.61 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
|
× |