Class: WikidataPositionHistory::Check::WrongPredecessor
Overview
Does the ‘replaces’ match the previous item in the list?
Instance Method Summary
collapse
#explanation, #initialize
Instance Method Details
#headline ⇒ Object
99
100
101
|
# File 'lib/wikidata_position_history/checks.rb', line 99
def headline
'Inconsistent predecessor'
end
|
#possible_explanation ⇒ Object
103
104
105
|
# File 'lib/wikidata_position_history/checks.rb', line 103
def possible_explanation
"#{current.officeholder.qlink} has a {{P|1365}} of #{predecessor_qlink}, but follows #{earlier.officeholder.qlink} here"
end
|
#problem? ⇒ Boolean
95
96
97
|
# File 'lib/wikidata_position_history/checks.rb', line 95
def problem?
earlier_holder? && !!predecessor_qlink && (earlier.officeholder.qlink != predecessor_qlink)
end
|