Class: Lot
- Inherits:
-
CollectionObject::BiologicalCollectionObject
- Object
- 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.
Instance Method Summary collapse
- #size_of_total ⇒ Object protected
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 |