push
circleci
4955 of 5622 relevant lines covered (88.14%)
1396.82 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
|
× |