module Samsara::ContextConcern
Public Instance Methods
event()
click to toggle source
# File lib/samsara/context_concern.rb, line 22 def event @event ||= event_class.new(event_attributes) end
event=(event)
click to toggle source
# File lib/samsara/context_concern.rb, line 26 def event=(event) self.event_type = event.class.name self.event_attributes = event.attributes end
event_class()
click to toggle source
# File lib/samsara/context_concern.rb, line 18 def event_class event_type.constantize end