Class: LogBrew::PersistentEventStore::StoredRecord
- Inherits:
-
Struct
- Object
- Struct
- LogBrew::PersistentEventStore::StoredRecord
- Defined in:
- lib/logbrew/persistent_event_store.rb
Instance Attribute Summary collapse
-
#bytes ⇒ Object
Returns the value of attribute bytes.
-
#durable ⇒ Object
Returns the value of attribute durable.
-
#json ⇒ Object
Returns the value of attribute json.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
Instance Method Summary collapse
-
#initialize(sequence, json, bytes, durable = true) ⇒ StoredRecord
constructor
A new instance of StoredRecord.
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
#bytes ⇒ Object
Returns the value of attribute bytes
10 11 12 |
# File 'lib/logbrew/persistent_event_store.rb', line 10 def bytes @bytes end |
#durable ⇒ Object
Returns the value of attribute durable
10 11 12 |
# File 'lib/logbrew/persistent_event_store.rb', line 10 def durable @durable end |
#json ⇒ Object
Returns the value of attribute json
10 11 12 |
# File 'lib/logbrew/persistent_event_store.rb', line 10 def json @json end |
#sequence ⇒ Object
Returns the value of attribute sequence
10 11 12 |
# File 'lib/logbrew/persistent_event_store.rb', line 10 def sequence @sequence end |