push
circleci
0 of 33 new or added lines in 1 file covered. (0.0%)
9374 existing lines in 213 files now uncovered.47 of 9753 relevant lines covered (0.48%)
0.01 hits per line
| 1 |
# frozen_string_literal: true
|
|
| 2 |
|
|
| 3 |
# ViewComponent that displays an aeon request button on the show page
|
|
|
UNCOV
4
|
class AeonRequestButtonComponent < RequestButtonComponent |
× |
|
UNCOV
5
|
def initialize(document:, holding: nil, url_class: Requests::AeonUrl) |
× |
|
UNCOV
6
|
@document = document
|
× |
|
UNCOV
7
|
@holding = holding
|
× |
|
UNCOV
8
|
@url_class = url_class
|
× |
|
UNCOV
9
|
end
|
× |
| 10 |
|
|
|
UNCOV
11
|
def label |
× |
|
UNCOV
12
|
'Reading Room Request'
|
× |
|
UNCOV
13
|
end
|
× |
| 14 |
|
|
|
UNCOV
15
|
def url |
× |
|
UNCOV
16
|
@url_class.new(document: @document, holding: @holding).to_s |
× |
|
UNCOV
17
|
end
|
× |
|
UNCOV
18
|
end
|
× |