circleci
12 of 12 new or added lines in 2 files covered. (100.0%)
805 of 1033 relevant lines covered (77.93%)
32.09 hits per line
1 |
# frozen_string_literal: true
|
× |
2 |
|
× |
3 |
class FiggyEventProcessor |
× |
4 |
class Processor |
× |
5 |
attr_reader :event
|
× |
6 |
def initialize(event) |
× |
7 |
@event = event
|
× |
8 |
end
|
× |
9 |
|
× |
10 |
private |
× |
11 |
|
× |
12 |
def exhibits |
× |
13 |
Spotlight::Exhibit.where("slug IN (?)", collection_slugs) |
× |
14 |
end
|
× |
15 |
|
× |
16 |
def manifest_url |
× |
17 |
event["manifest_url"]
|
× |
18 |
end
|
× |
19 |
|
× |
20 |
def collection_slugs |
× |
21 |
event["collection_slugs"]
|
× |
22 |
end
|
× |
23 |
|
× |
24 |
def event_type |
× |
25 |
event["event"]
|
× |
26 |
end
|
× |
27 |
|
× |
28 |
def index |
× |
29 |
Blacklight.default_index.connection
|
× |
30 |
end
|
× |
31 |
end
|
× |
32 |
end
|
× |