Class: TaxonNameRelationship::Typification::Genus

Inherits:
TaxonNameRelationship::Typification show all
Defined in:
app/models/taxon_name_relationship/typification/genus.rb

Defined Under Namespace

Classes: Monotypy, OriginalDesignation, RulingByCommission, SubsequentDesignation, Tautonomy

Class Method Summary collapse

Methods inherited from TaxonNameRelationship::Typification

disjoint_classes, disjoint_object_classes, disjoint_subject_classes, nomenclatural_priority

Methods inherited from TaxonNameRelationship

#aliases, 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

.assignableObject



41
42
43
# File 'app/models/taxon_name_relationship/typification/genus.rb', line 41

def self.assignable
  true
end

.assignment_methodObject



26
27
28
29
30
31
# File 'app/models/taxon_name_relationship/typification/genus.rb', line 26

def self.assignment_method
  # used like
  #    left_side_instance        right_side_instance
  #    species.type_of_genus(genus)
  :type_of_genus
end

.disjoint_taxon_name_relationshipsObject



13
14
15
16
# File 'app/models/taxon_name_relationship/typification/genus.rb', line 13

def self.disjoint_taxon_name_relationships
  self.parent.disjoint_taxon_name_relationships +
      [TaxonNameRelationship::Typification::Family.to_s]
end

.inverse_assignment_methodObject



33
34
35
36
37
38
39
# File 'app/models/taxon_name_relationship/typification/genus.rb', line 33

def self.inverse_assignment_method
  # used like:
  #   right_side instance   =  left_side instance
  #   genus.type_species = species
  #   genus.type_species_relationship # => returns a TaxonNameRelationship
  :type_species
end

.object_relationship_nameObject



22
23
24
# File 'app/models/taxon_name_relationship/typification/genus.rb', line 22

def self.object_relationship_name
  'type species'
end

.subject_relationship_nameObject



18
19
20
# File 'app/models/taxon_name_relationship/typification/genus.rb', line 18

def self.subject_relationship_name
  'type of genus'
end

.valid_object_ranksObject

right_side



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

def self.valid_object_ranks
  GENUS_RANK_NAMES
end

.valid_subject_ranksObject

left side



4
5
6
# File 'app/models/taxon_name_relationship/typification/genus.rb', line 4

def self.valid_subject_ranks
  SPECIES_RANK_NAMES
end