Class: Event::AssetSetQcStateEvent

Inherits:
Event show all
Defined in:
app/models/event/asset_set_qc_state_event.rb

Class Method Summary collapse

Methods inherited from Event

#request?

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

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

Class Method Details

.create_updated!(asset, reason) ⇒ Object


3
4
5
6
7
8
9
10
# File 'app/models/event/asset_set_qc_state_event.rb', line 3

def create_updated!(asset, reason)
  create!(
    eventful: asset,
    family: 'update',
    content: reason,
    message: reason
  )
end