Class: LibraryEvent

Inherits:
BroadcastEvent show all
Defined in:
app/models/library_event.rb

Constant Summary

Constants inherited from BroadcastEvent

BroadcastEvent::EVENT_JSON_ROOT, BroadcastEvent::UNKNOWN_USER_IDENTIFIER

Instance Method Summary collapse

Methods inherited from BroadcastEvent

#json_root, #metadata, #routing_key, set_event_type, #subjects, #user_identifier

Methods included from BroadcastEvent::RenderHelpers::RenderableClassMethods

#render_class

Methods included from BroadcastEvent::MetadataHelpers::MetadatableClassMethods

#has_metadata, #metadata_finders

Methods included from BroadcastEvent::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 Warren::BroadcastMessages

#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren

Instance Method Details

#event_typeObject


2
3
4
# File 'app/models/library_event.rb', line 2

def event_type
  properties[:event_type]
end

#event_type=(event_type) ⇒ Object


6
7
8
9
# File 'app/models/library_event.rb', line 6

def event_type=(event_type)
  self.properties ||= {}
  properties[:event_type] = event_type
end