Class: TaxonNameRelationship::OriginalCombination::OriginalSubvariety

Inherits:
TaxonNameRelationship::OriginalCombination show all
Defined in:
app/models/taxon_name_relationship/original_combination/original_subvariety.rb

Class Method Summary collapse

Methods inherited from TaxonNameRelationship::OriginalCombination

nomenclatural_priority, order_index

Methods inherited from TaxonNameRelationship

#aliases, disjoint_object_classes, disjoint_subject_classes, disjoint_taxon_name_relationships, #is_combination?, nomenclatural_priority, #object_properties, object_relationship_name, #subject_properties, subject_relationship_name, #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



30
31
32
# File 'app/models/taxon_name_relationship/original_combination/original_subvariety.rb', line 30

def self.assignable
  true
end

.assignment_methodObject



19
20
21
22
# File 'app/models/taxon_name_relationship/original_combination/original_subvariety.rb', line 19

def self.assignment_method
  # bus.set_as_form_in_original_combination(aus)
  :subvariety_in_original_combination
end

.inverse_assignment_methodObject

as.



25
26
27
28
# File 'app/models/taxon_name_relationship/original_combination/original_subvariety.rb', line 25

def self.inverse_assignment_method
  # aus.original_combination_form = bus
  :original_subvariety
end

.required_taxon_name_relationshipsObject



13
14
15
16
17
# File 'app/models/taxon_name_relationship/original_combination/original_subvariety.rb', line 13

def self.required_taxon_name_relationships
  self.collect_to_s(TaxonNameRelationship::OriginalCombination::OriginalSpecies,
                    TaxonNameRelationship::OriginalCombination::OriginalVariety,
                    TaxonNameRelationship::OriginalCombination::OriginalGenus)
end

.valid_object_ranksObject

right_side



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

def self.valid_object_ranks
  SPECIES_RANK_NAMES_ICN
end

.valid_subject_ranksObject

left_side



4
5
6
# File 'app/models/taxon_name_relationship/original_combination/original_subvariety.rb', line 4

def self.valid_subject_ranks
  SPECIES_RANK_NAMES_ICN
end