class Akasha::RecordedEvent

Event read from a stream.

Attributes

revision[R]
updated_at[R]

Public Class Methods

new(name, id, revision, updated_at, metadata, **data) click to toggle source
Calls superclass method Akasha::Event::new
# File lib/akasha/recorded_event.rb, line 8
def initialize(name, id, revision, updated_at, metadata, **data)
  super(name, id, metadata, **data)
  @revision = revision
  @updated_at = updated_at
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method Akasha::Event#==
# 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