Class: Event::AssetSetQcStateEvent
- Inherits:
-
Event
- Object
- ActiveRecord::Base
- ApplicationRecord
- Event
- Event::AssetSetQcStateEvent
- Defined in:
- app/models/event/asset_set_qc_state_event.rb
Class Method Summary collapse
Methods inherited from Event
Methods included from RequestDescriptorUpdateEvent
included, #library_creation_descriptor?, #pass_or_fail_event?, #set_request_metadata, #update_metadata_for_request
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
Class Method Details
.create_updated!(asset, reason) ⇒ Object
4 5 6 |
# File 'app/models/event/asset_set_qc_state_event.rb', line 4 def create_updated!(asset, reason) create!(eventful: asset, family: 'update', content: reason, message: reason) end |