class WikidataPositionHistory::Check

Checks if an Officeholder has any warning signs to report on

Attributes

current[R]
earlier[R]
later[R]

Public Class Methods

new(later, current, earlier) click to toggle source
# File lib/wikidata_position_history/checks.rb, line 6
def initialize(later, current, earlier)
  @later = later
  @current = current
  @earlier = earlier
end

Public Instance Methods

explanation() click to toggle source
# File lib/wikidata_position_history/checks.rb, line 12
def explanation
  possible_explanation if problem?
end

Protected Instance Methods

earlier_holder?() click to toggle source
# File lib/wikidata_position_history/checks.rb, line 33
def earlier_holder?
  !!earlier
end
later_holder?() click to toggle source
# File lib/wikidata_position_history/checks.rb, line 29
def later_holder?
  !!later
end