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

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

Direct Known Subclasses

Secondary1961

Defined Under Namespace

Classes: Secondary1961

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

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

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



28
29
30
31
# File 'app/models/taxon_name_relationship/iczn/invalidating/homonym/secondary.rb', line 28

def self.assignment_method
  # bus.set_as_iczn_secondary_homonym_of(aus)
  :iczn_set_as_secondary_homonym_of
end

.disjoint_taxon_name_relationshipsObject



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

def self.disjoint_taxon_name_relationships
  self.parent.disjoint_taxon_name_relationships +
      self.collect_to_s(TaxonNameRelationship::Iczn::Invalidating::Homonym,
          TaxonNameRelationship::Iczn::Invalidating::Homonym::Primary)
end

.inverse_assignment_methodObject



33
34
35
36
# File 'app/models/taxon_name_relationship/iczn/invalidating/homonym/secondary.rb', line 33

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

.object_relationship_nameObject



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

def self.object_relationship_name
  'secondary homonym'
end

.subject_relationship_nameObject



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

def self.subject_relationship_name
  'senior secondary homonym'
end

.valid_object_ranksObject

right_side



9
10
11
# File 'app/models/taxon_name_relationship/iczn/invalidating/homonym/secondary.rb', line 9

def self.valid_object_ranks
  SPECIES_RANK_NAMES_ICZN
end

.valid_subject_ranksObject

left_side



4
5
6
# File 'app/models/taxon_name_relationship/iczn/invalidating/homonym/secondary.rb', line 4

def self.valid_subject_ranks
  SPECIES_RANK_NAMES_ICZN
end