Class: LogBrew::PersistentEventStore::StoredRecord

Inherits:
Struct
  • Object
show all
Defined in:
lib/logbrew/persistent_event_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sequence, json, bytes, durable = true) ⇒ StoredRecord

Returns a new instance of StoredRecord.



11
12
13
14
# File 'lib/logbrew/persistent_event_store.rb', line 11

def initialize(sequence, json, bytes, durable = true)
  super(sequence, json.dup.freeze, bytes, durable)
  freeze
end

Instance Attribute Details

#bytesObject

Returns the value of attribute bytes

Returns:

  • (Object)

    the current value of bytes



10
11
12
# File 'lib/logbrew/persistent_event_store.rb', line 10

def bytes
  @bytes
end

#durableObject

Returns the value of attribute durable

Returns:

  • (Object)

    the current value of durable



10
11
12
# File 'lib/logbrew/persistent_event_store.rb', line 10

def durable
  @durable
end

#jsonObject

Returns the value of attribute json

Returns:

  • (Object)

    the current value of json



10
11
12
# File 'lib/logbrew/persistent_event_store.rb', line 10

def json
  @json
end

#sequenceObject

Returns the value of attribute sequence

Returns:

  • (Object)

    the current value of sequence



10
11
12
# File 'lib/logbrew/persistent_event_store.rb', line 10

def sequence
  @sequence
end