Class: TaxonNameClassification::Icnp::EffectivelyPublished::ValidlyPublished
- Inherits:
-
TaxonNameClassification::Icnp::EffectivelyPublished
- Object
- ActiveRecord::Base
- ApplicationRecord
- TaxonNameClassification
- TaxonNameClassification::Icnp
- TaxonNameClassification::Icnp::EffectivelyPublished
- TaxonNameClassification::Icnp::EffectivelyPublished::ValidlyPublished
- Defined in:
- app/models/taxon_name_classification/icnp/effectively_published/validly_published.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Illegitimate, Legitimate
Constant Summary collapse
- NOMEN_URI =
'http://purl.obolibrary.org/obo/NOMEN_0000084'.freeze
Constants included from SoftValidation
SoftValidation::ANCESTORS_WITH_SOFT_VALIDATIONS
Instance Attribute Summary
Attributes inherited from TaxonNameClassification
#project_id, #taxon_name_id, #type
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from TaxonNameClassification::Icnp::EffectivelyPublished
Methods inherited from TaxonNameClassification::Icnp
Methods inherited from TaxonNameClassification
#annotated_object, annotates?, applicable_ranks, assignable, #classification_label, code_applicability_end_year, code_applicability_start_year, collect_descendants_and_itself_to_s, collect_descendants_to_s, collect_to_s, gbif_status, label, #nomen_id, nomen_uri, #nomenclature_code, #nomenclature_code_matches, parent, possible_genus_endings, possible_species_endings, questionable_species_endings, #set_cached, #set_cached_names_for_taxon_names, #sv_fix_proper_classification, #sv_proper_classification, #sv_proper_year, #sv_validate_disjoint_classes, #type_class, #type_class=, #type_name, #validate_taxon_name_classification, #validate_uniqueness_of_latinized
Methods included from SoftValidation
#clear_soft_validations, #fix_for, #fix_soft_validations, #soft_fixed?, #soft_valid?, #soft_validate, #soft_validated?, #soft_validations, #soft_validators
Methods included from Shared::IsData
#errors_excepting, #full_error_messages_excepting, #identical, #is_community?, #is_destroyable?, #is_editable?, #is_in_use?, #is_in_users_projects?, #metamorphosize, #similar
Methods included from Shared::Notes
#concatenated_notes_string, #reject_notes
Methods included from Shared::Citations
#cited?, #mark_citations_for_destruction, #nomenclature_date, #origin_citation_source_id, #reject_citations, #requires_citation?, #sources_by_topic_id
Methods included from Housekeeping
#has_polymorphic_relationship?
Methods inherited from ApplicationRecord
Class Method Details
.disjoint_taxon_name_classes ⇒ Object
5 6 7 8 9 |
# File 'app/models/taxon_name_classification/icnp/effectively_published/validly_published.rb', line 5 def self.disjoint_taxon_name_classes self.parent.disjoint_taxon_name_classes + [TaxonNameClassification::Icnp::EffectivelyPublished.to_s] + self.collect_descendants_and_itself_to_s(TaxonNameClassification::Icnp::EffectivelyPublished::InvalidlyPublished) end |
Instance Method Details
#sv_not_specific_classes ⇒ Object
11 12 13 |
# File 'app/models/taxon_name_classification/icnp/effectively_published/validly_published.rb', line 11 def sv_not_specific_classes soft_validations.add(:type, 'Please specify if the name is Legitimate or Illegitimate') end |