Class: Tag2LayoutTemplate

Inherits:
ApplicationRecord show all
Includes:
Lot::Template, Uuid::Uuidable
Defined in:
app/models/tag2_layout_template.rb

Overview

Tag 2 Layouts apply a single tag to the entire plate

Instance Method Summary collapse

Methods included from Lot::Template

included

Methods included from Uuid::Uuidable

included, #unsaved_uuid!, #uuid

Methods inherited from ApplicationRecord

convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Warren::BroadcastMessages

#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren

Instance Method Details

#create!(attributes = {}, &block) ⇒ Object

Create a TagLayout instance that does the actual work of laying out the tags.


15
16
17
18
19
# File 'app/models/tag2_layout_template.rb', line 15

def create!(attributes = {}, &block)
  Tag2Layout.create!(attributes.merge(default_attributes), &block).tap do |t2layout|
    record_template_use(t2layout.plate)
  end
end

#stamp_to(_) ⇒ Object


21
22
23
# File 'app/models/tag2_layout_template.rb', line 21

def stamp_to(_)
  # Do Nothing
end