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.6.5 lib/volt/models/persistors/store_factory.rb
volt-0.6.4 lib/volt/models/persistors/store_factory.rb
volt-0.6.3 lib/volt/models/persistors/store_factory.rb
volt-0.6.2 lib/volt/models/persistors/store_factory.rb
volt-0.6.1 lib/volt/models/persistors/store_factory.rb
volt-0.6.0 lib/volt/models/persistors/store_factory.rb
volt-0.5.18 lib/volt/models/persistors/store_factory.rb
volt-0.5.17 lib/volt/models/persistors/store_factory.rb
volt-0.5.16 lib/volt/models/persistors/store_factory.rb
volt-0.5.15 lib/volt/models/persistors/store_factory.rb
volt-0.5.14 lib/volt/models/persistors/store_factory.rb
volt-0.5.13 lib/volt/models/persistors/store_factory.rb
volt-0.5.12 lib/volt/models/persistors/store_factory.rb
volt-0.5.11 lib/volt/models/persistors/store_factory.rb
volt-0.5.10 lib/volt/models/persistors/store_factory.rb
volt-0.5.9 lib/volt/models/persistors/store_factory.rb
volt-0.5.8 lib/volt/models/persistors/store_factory.rb
volt-0.5.7 lib/volt/models/persistors/store_factory.rb
volt-0.5.6 lib/volt/models/persistors/store_factory.rb
volt-0.5.4 lib/volt/models/persistors/store_factory.rb