Class: Akasha::RecordedEvent
- Defined in:
- lib/akasha/recorded_event.rb
Overview
Event read from a stream.
Instance Attribute Summary collapse
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Attributes inherited from Event
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, id, revision, updated_at, metadata, **data) ⇒ RecordedEvent
constructor
A new instance of RecordedEvent.
Methods inherited from Event
Constructor Details
#initialize(name, id, revision, updated_at, metadata, **data) ⇒ RecordedEvent
Returns a new instance of RecordedEvent.
8 9 10 11 12 |
# File 'lib/akasha/recorded_event.rb', line 8 def initialize(name, id, revision, updated_at, , **data) super(name, id, , **data) @revision = revision @updated_at = updated_at end |
Instance Attribute Details
#revision ⇒ Object (readonly)
Returns the value of attribute revision.
6 7 8 |
# File 'lib/akasha/recorded_event.rb', line 6 def revision @revision end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
6 7 8 |
# File 'lib/akasha/recorded_event.rb', line 6 def updated_at @updated_at end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 17 18 |
# File 'lib/akasha/recorded_event.rb', line 14 def ==(other) super(other) && @revision == other.revision && @updated_at.utc.iso8601 == other.updated_at.utc.iso8601 end |