Class: GenomerPluginValidate::Validator::MissingID

Inherits:
Genomer::Plugin
  • Object
show all
Includes:
GenomerPluginValidate::Validator
Defined in:
lib/genomer-plugin-validate/validator/missing_id.rb

Instance Method Summary collapse

Methods included from GenomerPluginValidate::Validator

#annotations_by_attribute, load, validators

Instance Method Details

#runObject



4
5
6
7
8
9
10
11
# File 'lib/genomer-plugin-validate/validator/missing_id.rb', line 4

def run
  missing = annotations_by_attribute('ID').detect{|k,_| k.nil? }
  if missing
    ["Annotations found with missing ID attribute"]
  else
    []
  end
end