Class: TaxonNameRelationship::Typification
- Inherits:
-
TaxonNameRelationship
- Object
- TaxonNameRelationship
- TaxonNameRelationship::Typification
- Defined in:
- app/models/taxon_name_relationship/typification.rb
Defined Under Namespace
Class Method Summary collapse
- .assignable ⇒ Object
- .disjoint_classes ⇒ Object
- .disjoint_object_classes ⇒ Object
- .disjoint_subject_classes ⇒ Object
- .nomenclatural_priority ⇒ Object
Instance Method Summary collapse
- #object_status_connector_to_subject ⇒ Object
- #subject_status_connector_to_object ⇒ Object
- #sv_coordinated_taxa_object ⇒ Object
- #sv_specific_relationship ⇒ Object
Class Method Details
.assignable ⇒ Object
3 4 5 |
# File 'app/models/taxon_name_relationship/typification.rb', line 3 def self.assignable false end |
.disjoint_classes ⇒ Object
7 8 9 10 11 |
# File 'app/models/taxon_name_relationship/typification.rb', line 7 def self.disjoint_classes self.collect_descendants_and_itself_to_s(TaxonNameClassification::Iczn::Unavailable, TaxonNameClassification::Icn::EffectivelyPublished::InvalidlyPublished, TaxonNameClassification::Icn::NotEffectivelyPublished) end |
.disjoint_object_classes ⇒ Object
17 18 19 |
# File 'app/models/taxon_name_relationship/typification.rb', line 17 def self.disjoint_object_classes self.disjoint_classes end |
.disjoint_subject_classes ⇒ Object
13 14 15 |
# File 'app/models/taxon_name_relationship/typification.rb', line 13 def self.disjoint_subject_classes self.disjoint_classes end |
.nomenclatural_priority ⇒ Object
21 22 23 |
# File 'app/models/taxon_name_relationship/typification.rb', line 21 def self.nomenclatural_priority :reverse end |
Instance Method Details
#object_status_connector_to_subject ⇒ Object
30 31 32 |
# File 'app/models/taxon_name_relationship/typification.rb', line 30 def object_status_connector_to_subject ' with' end |
#subject_status_connector_to_object ⇒ Object
25 26 27 |
# File 'app/models/taxon_name_relationship/typification.rb', line 25 def subject_status_connector_to_object ' of' end |
#sv_coordinated_taxa_object ⇒ Object
34 35 36 |
# File 'app/models/taxon_name_relationship/typification.rb', line 34 def sv_coordinated_taxa_object true # not applicable end |
#sv_specific_relationship ⇒ Object
38 39 40 41 42 |
# File 'app/models/taxon_name_relationship/typification.rb', line 38 def sv_specific_relationship unless self.object_taxon_name.is_available? soft_validations.add(:object_taxon_name_id, "'#{self.object_taxon_name.cached_html}' is not an available name, it should not have typification relationship") end end |