Class: Event

Inherits:
ApplicationRecord show all
Includes:
RequestDescriptorUpdateEvent, Uuid::Uuidable
Defined in:
app/models/event.rb

Overview

rubocop:todo Style/Documentation

Defined Under Namespace

Modules: PlateEvents, RequestDescriptorUpdateEvent Classes: AssetSetQcStateEvent, LabwareFailedEvent, PlateCreationEvent, SampleLogisticsQcEvent, SampleManifestEvent, ScannedIntoLabEvent, SequenomLoading

Instance Method Summary collapse

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 Squishify

extended

Instance Method Details

#requestObject


16
17
18
# File 'app/models/event.rb', line 16

def request
  eventful if request?
end

#request?Boolean

Returns:

  • (Boolean)

12
13
14
# File 'app/models/event.rb', line 12

def request?
  eventful.is_a?(Request)
end