Class: Lot

Inherits:
CollectionObject::BiologicalCollectionObject
  • Object
show all
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

Instance Method Details

#size_of_totalObject (protected)



12
13
14
# File 'app/models/lot.rb', line 12

def size_of_total
  errors.add(:total, 'total must be > 1') if self.total.nil? || !(self.total > 1)
end