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
|
|
|
UNCOV
2
|
module Requests |
× |
|
UNCOV
3
|
module ServiceEligibility |
× |
| 4 |
# This class is responsible for determining if a specific
|
|
| 5 |
# resource can be requested via Aeon
|
|
|
UNCOV
6
|
class Aeon |
× |
|
UNCOV
7
|
def initialize(requestable:) |
× |
|
UNCOV
8
|
@requestable = requestable
|
× |
|
UNCOV
9
|
end
|
× |
| 10 |
|
|
|
UNCOV
11
|
def to_s |
× |
|
UNCOV
12
|
'aeon'
|
× |
|
UNCOV
13
|
end
|
× |
| 14 |
|
|
|
UNCOV
15
|
def eligible? |
× |
|
UNCOV
16
|
requestable.aeon? || !(requestable.alma_managed? || requestable.partner_holding?) |
× |
|
UNCOV
17
|
end
|
× |
| 18 |
|
|
|
UNCOV
19
|
private |
× |
| 20 |
|
|
|
UNCOV
21
|
attr_reader :requestable
|
× |
|
UNCOV
22
|
end
|
× |
|
UNCOV
23
|
end
|
× |
|
UNCOV
24
|
end
|
× |