circleci
0 of 46 new or added lines in 2 files covered. (0.0%)
4806 existing lines in 74 files now uncovered.65 of 5065 relevant lines covered (1.28%)
0.01 hits per line
| 1 |
# frozen_string_literal: true
|
|
| 2 |
# Class for storing a title in our local representation
|
|
|
UNCOV
3
|
module PDCMetadata |
× |
| 4 |
# value: "100 aƱos de soledad"
|
|
| 5 |
# title_type: "TranslatedTitle"
|
|
|
UNCOV
6
|
class Title |
× |
|
UNCOV
7
|
attr_accessor :title, :title_type |
× |
|
UNCOV
8
|
def initialize(title:, title_type: nil) |
× |
|
UNCOV
9
|
@title = title
|
× |
|
UNCOV
10
|
@title_type = title_type
|
× |
|
UNCOV
11
|
end
|
× |
| 12 |
|
|
|
UNCOV
13
|
def main? |
× |
|
UNCOV
14
|
@title_type.blank?
|
× |
|
UNCOV
15
|
end
|
× |
| 16 |
|
|
|
UNCOV
17
|
def compare_value |
× |
|
UNCOV
18
|
"#{title} (#{title_type})"
|
× |
|
UNCOV
19
|
end
|
× |
|
UNCOV
20
|
end
|
× |
|
UNCOV
21
|
end
|
× |