Sha256: 763e627a2f8c885bb55bdf2755a7d6fe4b0e87c670ecd447f3d3c97f036bfed1

Contents?: true

Size: 265 Bytes

Versions: 31

Compression:

Stored size: 265 Bytes

Contents

module Persistors
  class StoreFactory
    def initialize(tasks)
      @tasks = tasks
    end
    
    def new(model)
      if model.is_a?(ArrayModel)
        ArrayStore.new(model, @tasks)
      else
        ModelStore.new(model, @tasks)
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
volt-0.5.3 lib/volt/models/persistors/store_factory.rb
volt-0.5.2 lib/volt/models/persistors/store_factory.rb
volt-0.5.1 lib/volt/models/persistors/store_factory.rb
volt-0.5.0 lib/volt/models/persistors/store_factory.rb
volt-0.4.18 lib/volt/models/persistors/store_factory.rb
volt-0.4.17 lib/volt/models/persistors/store_factory.rb
volt-0.4.15 lib/volt/models/persistors/store_factory.rb
volt-0.4.14 lib/volt/models/persistors/store_factory.rb
volt-0.4.12 lib/volt/models/persistors/store_factory.rb
volt-0.4.11 lib/volt/models/persistors/store_factory.rb
volt-0.4.10 lib/volt/models/persistors/store_factory.rb