Class: BroadcastEvent::LabEvent
- Inherits:
-
BroadcastEvent
- Object
- ActiveRecord::Base
- ApplicationRecord
- BroadcastEvent
- BroadcastEvent::LabEvent
- Defined in:
- app/models/broadcast_event/lab_event.rb
Overview
Serializes lab events for the event warehouse
Constant Summary
Constants inherited from BroadcastEvent
EVENT_JSON_ROOT, UNKNOWN_USER_IDENTIFIER
Instance Method Summary collapse
Methods inherited from BroadcastEvent
#json_root, #routing_key, set_event_type, #subjects, #user_identifier
Methods included from SubjectHelpers::SubjectableClassMethods
#has_subject, #has_subjects, #seed_class, #seed_subject, #subject_associations
Methods included from MetadataHelpers::MetadatableClassMethods
#has_metadata, #metadata_finders
Methods included from RenderHelpers::RenderableClassMethods
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
#event_type ⇒ Object
7 8 9 |
# File 'app/models/broadcast_event/lab_event.rb', line 7 def event_type seed.description.downcase.gsub(/[^\w]+/, '_') end |
#metadata ⇒ Object
11 12 13 |
# File 'app/models/broadcast_event/lab_event.rb', line 11 def seed.descriptor_hash end |
#source_labware ⇒ Object
26 27 28 |
# File 'app/models/broadcast_event/lab_event.rb', line 26 def source_labware Array(seed.eventful.source_labware) end |