Class: TaxonNameRelationship::Combination

Inherits:
TaxonNameRelationship show all
Defined in:
app/models/taxon_name_relationship/combination.rb

Defined Under Namespace

Classes: Form, Genus, Section, Series, Species, Subform, Subgenus, Subsection, Subseries, Subspecies, Subvariety, Variety

Class Method Summary collapse

Methods inherited from TaxonNameRelationship

#aliases, assignable, disjoint_taxon_name_relationships, #is_combination?, #object_properties, object_relationship_name, required_taxon_name_relationships, #subject_properties, subject_relationship_name, #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

.disjoint_classesObject



9
10
11
# File 'app/models/taxon_name_relationship/combination.rb', line 9

def self.disjoint_classes
  self.collect_descendants_to_s(TaxonNameClassification)
end

.disjoint_object_classesObject



17
18
19
# File 'app/models/taxon_name_relationship/combination.rb', line 17

def self.disjoint_object_classes
  self.disjoint_classes
end

.disjoint_subject_classesObject



13
14
15
# File 'app/models/taxon_name_relationship/combination.rb', line 13

def self.disjoint_subject_classes
  self.disjoint_classes
end

.nomenclatural_priorityObject



21
22
23
# File 'app/models/taxon_name_relationship/combination.rb', line 21

def self.nomenclatural_priority
  :reverse
end

.order_indexObject



5
6
7
# File 'app/models/taxon_name_relationship/combination.rb', line 5

def self.order_index
  RANKS.index(::ICN_LOOKUP[self.object_relationship_name])
end