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 = {}) ⇒ 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 = {}) ⇒ Object
Create a TagLayout instance that does the actual work of laying out the tags.
14 15 16 |
# File 'app/models/tag2_layout_template.rb', line 14 def create!(attributes = {}, &) Tag2Layout.create!(attributes.merge(default_attributes), &).tap { |t2layout| record_template_use(t2layout.plate) } end |
#stamp_to(_) ⇒ Object
18 19 20 |
# File 'app/models/tag2_layout_template.rb', line 18 def stamp_to(_) # Do Nothing end |