class Sandthorn::ApplicationSnapshotStore

Attributes

store[R]

Public Class Methods

new() click to toggle source
# File lib/sandthorn/application_snapshot_store.rb, line 3
    def initialize
  @store = Hash.new
end

Public Instance Methods

find(aggregate_id) click to toggle source
# File lib/sandthorn/application_snapshot_store.rb, line 13
def find aggregate_id
  @store[aggregate_id]
end
save(aggregate_id, aggregate) click to toggle source
# File lib/sandthorn/application_snapshot_store.rb, line 9
def save aggregate_id, aggregate
  @store[aggregate_id] = aggregate
end