Class: TaxonNameRelationship::Icn::Unaccepting::Usage::Misspelling

Inherits:
TaxonNameRelationship::Icn::Unaccepting::Usage show all
Defined in:
app/models/taxon_name_relationship/icn/unaccepting/usage/misspelling.rb

Class Method Summary collapse

Methods inherited from TaxonNameRelationship::Icn::Unaccepting

assignable, nomenclatural_priority

Methods inherited from TaxonNameRelationship::Icn

disjoint_object_classes, valid_object_ranks, valid_subject_ranks

Methods inherited from TaxonNameRelationship

#aliases, assignable, disjoint_object_classes, #is_combination?, nomenclatural_priority, #object_properties, required_taxon_name_relationships, #subject_properties, #type_class, #type_class=, #type_name, valid_object_ranks, valid_subject_ranks

Methods included from SoftValidation

#clear_soft_validations, #fix_soft_validations, #soft_fixed?, #soft_valid?, #soft_validate, #soft_validated?, #soft_validations

Methods included from Housekeeping

#has_polymorphic_relationship?

Class Method Details

.assignment_methodObject



27
28
29
30
# File 'app/models/taxon_name_relationship/icn/unaccepting/usage/misspelling.rb', line 27

def self.assignment_method
  # bus.set_as_icn_misspelling_of(aus)
  :icn_set_as_misspelling_of
end

.disjoint_subject_classesObject



9
10
11
12
13
14
15
16
# File 'app/models/taxon_name_relationship/icn/unaccepting/usage/misspelling.rb', line 9

def self.disjoint_subject_classes
  self.parent.disjoint_subject_classes +
      self.collect_descendants_and_itself_to_s(TaxonNameClassification::Icn::EffectivelyPublished::InvalidlyPublished,
          TaxonNameClassification::Icn::EffectivelyPublished::ValidlyPublished::Legitimate) +
      self.collect_to_s(TaxonNameClassification::Icn::NotEffectivelyPublished,
      TaxonNameClassification::Icn::EffectivelyPublished::ValidlyPublished::Illegitimate::Homonym,
      TaxonNameClassification::Icn::EffectivelyPublished::ValidlyPublished::Illegitimate::Superfluous)
end

.disjoint_taxon_name_relationshipsObject



3
4
5
6
7
# File 'app/models/taxon_name_relationship/icn/unaccepting/usage/misspelling.rb', line 3

def self.disjoint_taxon_name_relationships
  self.parent.disjoint_taxon_name_relationships +
      self.collect_to_s(TaxonNameRelationship::Icn::Unaccepting::Usage::Basionym,
          TaxonNameRelationship::Icn::Unaccepting::Usage::Misapplication)
end

.inverse_assignment_methodObject



32
33
34
35
# File 'app/models/taxon_name_relationship/icn/unaccepting/usage/misspelling.rb', line 32

def self.inverse_assignment_method
  # aus.icn_misspelling = bus
  :icn_misspelling
end

.object_relationship_nameObject



22
23
24
# File 'app/models/taxon_name_relationship/icn/unaccepting/usage/misspelling.rb', line 22

def self.object_relationship_name
  'misspelling'
end

.subject_relationship_nameObject



18
19
20
# File 'app/models/taxon_name_relationship/icn/unaccepting/usage/misspelling.rb', line 18

def self.subject_relationship_name
  'correct spelling'
end