Module: EventSource::Entity

Defined in:
lib/event_source/entity.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#uidObject

Returns the value of attribute uid.



45
46
47
# File 'lib/event_source/entity.rb', line 45

def uid
  @uid
end

Instance Method Details

#entity_eventsObject



47
48
49
50
# File 'lib/event_source/entity.rb', line 47

def entity_events
    @events ||= Array.new
    @events
end

#saveObject



52
53
54
# File 'lib/event_source/entity.rb', line 52

def save
    entity_events.each {|e| e.save}
end