Class: WikidataPositionHistory::Check::MissingSuccessor

Inherits:
WikidataPositionHistory::Check show all
Defined in:
lib/wikidata_position_history/checks.rb

Overview

Is there a ‘replaced by’ but no next item in the list?

Instance Method Summary collapse

Methods inherited from WikidataPositionHistory::Check

#explanation, #initialize

Constructor Details

This class inherits a constructor from WikidataPositionHistory::Check

Instance Method Details

#headlineObject



144
145
146
# File 'lib/wikidata_position_history/checks.rb', line 144

def headline
  'Inconsistent successor'
end

#possible_explanationObject



148
149
150
# File 'lib/wikidata_position_history/checks.rb', line 148

def possible_explanation
  "#{current.officeholder.qlink} has a {{P|1366}} of #{successor_qlink}, but is not followed by anyone here"
end

#problem?Boolean

Returns:

  • (Boolean)


140
141
142
# File 'lib/wikidata_position_history/checks.rb', line 140

def problem?
  successor_qlink && !later_holder?
end