Class: Commons::Integrity::Check::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/commons/integrity/check/base.rb

Overview

All other checks should inherit from here, and override ‘errors`

Direct Known Subclasses

AreaPositionsKnown, WikidataIdentifiers

Defined Under Namespace

Classes: Error

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename, config: nil) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/commons/integrity/check/base.rb', line 8

def initialize(filename, config: nil)
  @filename = filename
  @given_config = config
end

Class Method Details

.monikerObject



17
18
19
# File 'lib/commons/integrity/check/base.rb', line 17

def self.moniker
  name.sub('Commons::Integrity::Check::', '')
end

Instance Method Details

#errorsObject



13
14
15
# File 'lib/commons/integrity/check/base.rb', line 13

def errors
  []
end