module ActiveEvent::EventType
Attributes
store_infos[W]
Public Class Methods
create_instance(type, data)
click to toggle source
# File lib/active_event/event_type.rb, line 10 def self.create_instance(type, data) Object.const_get(type).new(data) rescue NameError require 'ostruct' OpenStruct.new(data.merge(event_type: type.to_s)).freeze end
Public Instance Methods
add_store_infos(hash)
click to toggle source
# File lib/active_event/event_type.rb, line 17 def add_store_infos(hash) store_infos.merge! hash end
event_type()
click to toggle source
# File lib/active_event/event_type.rb, line 6 def event_type self.class.name end
store_infos()
click to toggle source
# File lib/active_event/event_type.rb, line 21 def store_infos @store_infos ||= {} end