circleci
400 of 9819 relevant lines covered (4.07%)
0.04 hits per line
1 |
# frozen_string_literal: true
|
× |
2 |
class FileSetDecorator < Valkyrie::ResourceDecorator |
× |
3 |
display( |
× |
4 |
[ |
× |
5 |
:height,
|
× |
6 |
:width,
|
× |
7 |
:mime_type,
|
× |
8 |
:size,
|
× |
9 |
:md5,
|
× |
10 |
:sha1,
|
× |
11 |
:sha256
|
× |
12 |
] |
× |
13 |
) |
× |
14 |
|
× |
15 |
def manageable_files? |
× |
16 |
false
|
× |
17 |
end
|
× |
18 |
|
× |
19 |
def parents |
× |
20 |
query_service.find_parents(resource: model).to_a.map(&:decorate) |
× |
21 |
end
|
× |
22 |
|
× |
23 |
def parent |
× |
24 |
parents.first |
× |
25 |
end
|
× |
26 |
|
× |
27 |
def collections |
× |
28 |
[] |
× |
29 |
end
|
× |
30 |
|
× |
31 |
def collection_slugs |
× |
32 |
@collection_slugs ||= parent.try(:collection_slugs) |
× |
33 |
end
|
× |
34 |
end
|
× |