examples/galena/lib/galena/frozen.rb
def create_galena_box
      # the box container type
      self.container_type = Galena.administrative_objects.box_type
      # the required box site
      self.site = Galena.administrative_objects.tissue_bank
      # A freezer with a slot for the box.
      frz = Galena.administrative_objects.freezer_type.find_available(site, :create)
      # Add the box to the first open slot in the first unfilled rack in the freezer.
      frz << self
      logger.debug { "Placed the tissue box #{self} in freezer #{frz}." }
      logger.debug { "Creating the tissue box #{self}..." }
      create
    end
def create_galena_box
      # the box container type
      self.container_type = Galena.administrative_objects.box_type
      # the required box site
      self.site = Galena.administrative_objects.tissue_bank
      # A freezer with a slot for the box.
      frz = Galena.administrative_objects.freezer_type.find_available(site, :create)
      # Add the box to the first open slot in the first unfilled rack in the freezer.
      frz << self
      logger.debug { "Placed the tissue box #{self} in freezer #{frz}." }
      logger.debug { "Creating the tissue box #{self}..." }
      create
    end
def create_galena_box # the box container type self . container_type = Galena . administrative_objects . box_type # the required box site self . site = Galena . administrative_objects . tissue_bank # A freezer with a slot for the box. frz = Galena . administrative_objects . freezer_type . find_available ( site , :create ) # Add the box to the first open slot in the first unfilled rack in the freezer. frz << self logger . debug { "Placed the tissue box #{self} in freezer #{frz}." } logger . debug { "Creating the tissue box #{self}..." } create end
Creates a new box of type {Galena::Seed#box_type} in a freezer of type
 {Galena::Seed#freezer_type}.

 @return [StorageContainer] the new box
Creates a new box of type { Galena :: Seed#box_type } in a freezer of type { Galena :: Seed#freezer_type } .