Class: TaxonNameRelationship::Iczn::Invalidating::Homonym

Inherits:
TaxonNameRelationship::Iczn::Invalidating show all
Defined in:
app/models/taxon_name_relationship/iczn/invalidating/homonym.rb

Direct Known Subclasses

Primary, Secondary

Defined Under Namespace

Classes: Primary, Secondary

Class Method Summary collapse

Methods inherited from TaxonNameRelationship::Iczn::Invalidating

assignable, disjoint_subject_classes, nomenclatural_priority

Methods inherited from TaxonNameRelationship::Iczn

disjoint_object_classes, disjoint_subject_classes, valid_object_ranks, valid_subject_ranks

Methods inherited from TaxonNameRelationship

#aliases, assignable, disjoint_object_classes, disjoint_subject_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



24
25
26
27
# File 'app/models/taxon_name_relationship/iczn/invalidating/homonym.rb', line 24

def self.assignment_method
  # bus.set_as_iczn_homonym_of(aus)
  :iczn_set_as_homonym_of
end

.disjoint_taxon_name_relationshipsObject



3
4
5
6
7
8
9
# File 'app/models/taxon_name_relationship/iczn/invalidating/homonym.rb', line 3

def self.disjoint_taxon_name_relationships
  self.parent.disjoint_taxon_name_relationships +
      self.collect_descendants_to_s(TaxonNameRelationship::Iczn::Invalidating::Usage) +
      self.collect_to_s(TaxonNameRelationship::Iczn::Invalidating,
          TaxonNameRelationship::Iczn::Invalidating::Synonym::Suppression::Total)

end

.inverse_assignment_methodObject

as.



30
31
32
33
# File 'app/models/taxon_name_relationship/iczn/invalidating/homonym.rb', line 30

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

.object_relationship_nameObject



19
20
21
# File 'app/models/taxon_name_relationship/iczn/invalidating/homonym.rb', line 19

def self.object_relationship_name
  'homonym'
end

.subject_relationship_nameObject

def self.disjoint_object_classes

  self.parent.disjoint_object_classes
end


15
16
17
# File 'app/models/taxon_name_relationship/iczn/invalidating/homonym.rb', line 15

def self.subject_relationship_name
  'senior homonym'
end