Class: BroadcastEvent::AssetAudit
- Inherits:
-
BroadcastEvent
- Object
- ActiveRecord::Base
- ApplicationRecord
- BroadcastEvent
- BroadcastEvent::AssetAudit
- Defined in:
- app/models/broadcast_event/asset_audit.rb
Overview
rubocop:todo Style/Documentation
Constant Summary
Constants inherited from BroadcastEvent
EVENT_JSON_ROOT, UNKNOWN_USER_IDENTIFIER
Instance Method Summary collapse
Methods inherited from BroadcastEvent
#json_root, #metadata, #routing_key, set_event_type, #subjects
Methods included from RenderHelpers::RenderableClassMethods
Methods included from MetadataHelpers::MetadatableClassMethods
#has_metadata, #metadata_finders
Methods included from SubjectHelpers::SubjectableClassMethods
#has_subject, #has_subjects, #seed_class, #seed_subject, #subject_associations
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
Methods included from Warren::BroadcastMessages
#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren
Instance Method Details
#event_type ⇒ Object
4 5 6 |
# File 'app/models/broadcast_event/asset_audit.rb', line 4 def event_type seed.key end |
#user_identifier ⇒ Object
8 9 10 11 12 |
# File 'app/models/broadcast_event/asset_audit.rb', line 8 def user_identifier return seed.created_by if user.nil? user.email.presence || user.login end |