Class: WikidataPositionHistory::Check::MissingPredecessor
Overview
Is there a ‘replaces’ but no previous item in the list?
Instance Method Summary
collapse
#explanation, #initialize
Instance Method Details
#headline ⇒ Object
114
115
116
|
# File 'lib/wikidata_position_history/checks.rb', line 114
def headline
'Inconsistent predecessor'
end
|
#possible_explanation ⇒ Object
118
119
120
|
# File 'lib/wikidata_position_history/checks.rb', line 118
def possible_explanation
"#{current.officeholder.qlink} has a {{P|1365}} of #{predecessor_qlink}, but does not follow anyone here"
end
|
#problem? ⇒ Boolean
110
111
112
|
# File 'lib/wikidata_position_history/checks.rb', line 110
def problem?
predecessor_qlink && !earlier_holder?
end
|