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