Class: EventSorcerer::EventStream

Inherits:
Struct
  • Object
show all
Defined in:
lib/event_sorcerer/event_stream.rb

Overview

Public: Simple value object representing an event stream.

Instance Attribute Summary collapse

Instance Attribute Details

#current_versionObject

Returns the value of attribute current_version

Returns:

  • (Object)

    the current value of current_version



3
4
5
# File 'lib/event_sorcerer/event_stream.rb', line 3

def current_version
  @current_version
end

#eventsObject

Returns the value of attribute events

Returns:

  • (Object)

    the current value of events



3
4
5
# File 'lib/event_sorcerer/event_stream.rb', line 3

def events
  @events
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/event_sorcerer/event_stream.rb', line 3

def id
  @id
end