Class: Tag2LayoutTemplate
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Tag2LayoutTemplate
- 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
-
#create!(attributes = {}, &block) ⇒ Object
Create a TagLayout instance that does the actual work of laying out the tags.
- #stamp_to(_) ⇒ Object
Methods included from Lot::Template
Methods included from Uuid::Uuidable
included, #unsaved_uuid!, #uuid
Methods inherited from ApplicationRecord
alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!
Methods included from Squishify
Instance Method Details
#create!(attributes = {}, &block) ⇒ Object
Create a TagLayout instance that does the actual work of laying out the tags.
14 15 16 17 18 |
# File 'app/models/tag2_layout_template.rb', line 14 def create!(attributes = {}, &block) Tag2Layout .create!(attributes.merge(default_attributes), &block) .tap { |t2layout| record_template_use(t2layout.plate) } end |
#stamp_to(_) ⇒ Object
20 21 22 |
# File 'app/models/tag2_layout_template.rb', line 20 def stamp_to(_) # Do Nothing end |