Class: TaxonNameRelationship::Combination::Subform

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

Class Method Summary collapse

Methods inherited from TaxonNameRelationship::Combination

disjoint_classes, disjoint_object_classes, disjoint_subject_classes, 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



28
29
30
# File 'app/models/taxon_name_relationship/combination/subform.rb', line 28

def self.assignable
  true
end

.assignment_methodObject



19
20
21
# File 'app/models/taxon_name_relationship/combination/subform.rb', line 19

def self.assignment_method
  :subform_in_combination
end

.inverse_assignment_methodObject

as.



24
25
26
# File 'app/models/taxon_name_relationship/combination/subform.rb', line 24

def self.inverse_assignment_method
  :combination_subform
end

.required_taxon_name_relationshipsObject



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

def self.required_taxon_name_relationships
  self.collect_to_s(TaxonNameRelationship::Combination::Species,
                    TaxonNameRelationship::Combination::Form,
                    TaxonNameRelationship::Combination::Genus)
end

.valid_object_ranksObject

right_side



9
10
11
# File 'app/models/taxon_name_relationship/combination/subform.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/combination/subform.rb', line 4

def self.valid_subject_ranks
  SPECIES_RANK_NAMES_ICN
end