Class: Lot
- Inherits:
-
CollectionObject::BiologicalCollectionObject
- Object
- CollectionObject
- CollectionObject::BiologicalCollectionObject
- Lot
- Defined in:
- app/models/lot.rb
Overview
A class representing physical, biological, collection enumerated (precisely, see also RangedLot) to > 1, i.e. a group of individuals.
Constant Summary
Constants included from Shared::IsDwcOccurrence
Shared::IsDwcOccurrence::DWC_DELIMITER, Shared::IsDwcOccurrence::VIEW_EXCLUSIONS
Instance Method Summary collapse
- #size_of_total ⇒ Object protected
Methods inherited from CollectionObject::BiologicalCollectionObject
#current_taxon_determination=, #reorder_determinations_by, #sv_determined_before_collected, #sv_fix_missing_determination, #sv_missing_biocuration_classification, #sv_missing_collecting_event, #sv_missing_determination, #sv_missing_preparation_type, #sv_missing_repository
Methods included from CollectionObject::DwcExtensions
#dwc_associated_media, #dwc_associated_taxa, #dwc_caste, #dwc_catalog_number, #dwc_collection_code, #dwc_event_time, #dwc_higher_classification, #dwc_individual_count, #dwc_institution_code, #dwc_institution_id, #dwc_internal_attribute_for, #dwc_life_stage, #dwc_occurrence_remarks, #dwc_occurrence_status, #dwc_other_catalog_numbers, #dwc_preparations, #dwc_record_number, #dwc_sex, #dwc_type_status, #dwc_verbatim_label, #is_fossil?
Methods included from Shared::IsDwcOccurrence
#dwc_occurrence_attribute_values, #dwc_occurrence_attributes, #dwc_occurrence_basis, #dwc_occurrence_id, #dwc_otu_id, #get_dwc_occurrence, #set_dwc_occurrence
Instance Method Details
#size_of_total ⇒ Object (protected)
13 14 15 |
# File 'app/models/lot.rb', line 13 def size_of_total errors.add(:total, 'total must be > 1') if self.total.nil? || !(self.total > 1) end |