Sha256: c9d8f5e0f3bf12bdeddb5f797a7f0b280859439cb7fb164b8586e60f8b8693be

Contents?: true

Size: 306 Bytes

Versions: 72

Compression:

Stored size: 306 Bytes

Contents

module Volt
  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
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 lib/volt/models/persistors/store_factory.rb
volt-0.9.7.pre7 lib/volt/models/persistors/store_factory.rb
volt-0.9.7.pre6 lib/volt/models/persistors/store_factory.rb
volt-0.9.7.pre5 lib/volt/models/persistors/store_factory.rb
volt-0.9.7.pre3 lib/volt/models/persistors/store_factory.rb
volt-0.9.7.pre2 lib/volt/models/persistors/store_factory.rb
volt-0.9.6 lib/volt/models/persistors/store_factory.rb
volt-0.9.6.pre3 lib/volt/models/persistors/store_factory.rb
volt-0.9.6.pre2 lib/volt/models/persistors/store_factory.rb
volt-0.9.6.pre1 lib/volt/models/persistors/store_factory.rb
volt-0.9.5 lib/volt/models/persistors/store_factory.rb
volt-0.9.5.pre12 lib/volt/models/persistors/store_factory.rb
volt-0.9.5.pre11 lib/volt/models/persistors/store_factory.rb
volt-0.9.5.pre9 lib/volt/models/persistors/store_factory.rb
volt-0.9.5.pre8 lib/volt/models/persistors/store_factory.rb
volt-0.9.5.pre7 lib/volt/models/persistors/store_factory.rb
volt-0.9.5.pre6 lib/volt/models/persistors/store_factory.rb
volt-0.9.5.pre5 lib/volt/models/persistors/store_factory.rb
volt-0.9.5.pre4 lib/volt/models/persistors/store_factory.rb
volt-0.9.5.pre3 lib/volt/models/persistors/store_factory.rb