Class: TaxonNameRelationship::SourceClassifiedAs

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

Class Method Summary collapse

Methods inherited from TaxonNameRelationship

#aliases, disjoint_object_classes, disjoint_taxon_name_relationships, #is_combination?, #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



39
40
41
# File 'app/models/taxon_name_relationship/source_classified_as.rb', line 39

def self.assignable
  true
end

.assignment_methodObject



29
30
31
32
# File 'app/models/taxon_name_relationship/source_classified_as.rb', line 29

def self.assignment_method
  #family.as_source_classified > [Genus]
  :as_source_classified
end

.disjoint_subject_classesObject



15
16
17
18
19
# File 'app/models/taxon_name_relationship/source_classified_as.rb', line 15

def self.disjoint_subject_classes
  self.collect_descendants_and_itself_to_s(TaxonNameClassification::Iczn::Unavailable,
      TaxonNameClassification::Icn::EffectivelyPublished::InvalidlyPublished,
      TaxonNameClassification::Icn::NotEffectivelyPublished)
end

.inverse_assignment_methodObject



34
35
36
37
# File 'app/models/taxon_name_relationship/source_classified_as.rb', line 34

def self.inverse_assignment_method
  #genus.source_classified_as = Family
  :source_classified_as
end

.nomenclatural_priorityObject



43
44
45
# File 'app/models/taxon_name_relationship/source_classified_as.rb', line 43

def self.nomenclatural_priority
  :reverse
end

.object_relationship_nameObject



25
26
27
# File 'app/models/taxon_name_relationship/source_classified_as.rb', line 25

def self.object_relationship_name
  'classified as'
end

.subject_relationship_nameObject



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

def self.subject_relationship_name
  'as classified for'
end

.valid_object_ranksObject

right_side



11
12
13
# File 'app/models/taxon_name_relationship/source_classified_as.rb', line 11

def self.valid_object_ranks
  RANK_CLASS_NAMES
end

.valid_subject_ranksObject

left_side



6
7
8
# File 'app/models/taxon_name_relationship/source_classified_as.rb', line 6

def self.valid_subject_ranks
  FAMILY_AND_ABOVE_RANK_NAMES
end