module EntityStore::Event
Attributes
entity_id[RW]
entity_version[RW]
Public Class Methods
included(klass)
click to toggle source
# File lib/entity_store/event.rb, line 7 def self.included(klass) klass.class_eval do include Attributes include HashSerialization extend ClassMethods end end
Public Instance Methods
inspect()
click to toggle source
# File lib/entity_store/event.rb, line 52 def inspect "<#{self.class.name} #{self.attributes.inspect}>" end
receiver_name()
click to toggle source
# File lib/entity_store/event.rb, line 15 def receiver_name elements = self.class.name.split('::') elements[elements.count - 1]. gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2'). gsub(/([a-z\d])([A-Z])/,'\1_\2'). tr("-", "_"). downcase end