Class: LibraryEvent
- Inherits:
-
BroadcastEvent
- Object
- ActiveRecord::Base
- ApplicationRecord
- BroadcastEvent
- LibraryEvent
- Defined in:
- app/models/library_event.rb
Overview
Note:
This is not namespaced to assist with exposure via the API
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::SubjectHelpers::SubjectableClassMethods
#has_subject, #has_subjects, #seed_class, #seed_subject, #subject_associations
Methods included from BroadcastEvent::MetadataHelpers::MetadatableClassMethods
#has_metadata, #metadata_finders
Methods included from BroadcastEvent::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
4 5 6 |
# File 'app/models/library_event.rb', line 4 def event_type properties[:event_type] end |
#event_type=(event_type) ⇒ Object
8 9 10 11 |
# File 'app/models/library_event.rb', line 8 def event_type=(event_type) self.properties ||= {} properties[:event_type] = event_type end |