Module: EventSource::Entity
- Defined in:
- lib/event_source/entity.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
Instance Attribute Details
#uid ⇒ Object
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_events ⇒ Object
47 48 49 50 |
# File 'lib/event_source/entity.rb', line 47 def entity_events @events ||= Array.new @events end |
#save ⇒ Object
52 53 54 |
# File 'lib/event_source/entity.rb', line 52 def save entity_events.each {|e| e.save} end |