Class: LibraryEvent

Inherits:
BroadcastEvent show all
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

#render_class

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

extended

Instance Method Details

#event_typeObject



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