Class: MessengerCreator
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- MessengerCreator
- Defined in:
- app/models/messenger_creator.rb
Overview
A messenger creator acts as a message factory for a given for a given plate. They are currently triggered by: 1. Cherrypick batch release They specify both a template (under Api::Messages) and a root
Defined Under Namespace
Classes: SelfFinder, WellFinder
Instance Method Summary collapse
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!(base) ⇒ Object
33 34 35 |
# File 'app/models/messenger_creator.rb', line 33 def create!(base) finder.new(base).each_target { |target| Messenger.create!(target:, root:, template:) } end |