Sha256: fa67c919aeceb056437a2502db87b71b5cecc7503fa4c246e727eeca88fecd6d

Contents?: true

Size: 708 Bytes

Versions: 5

Compression:

Stored size: 708 Bytes

Contents

require 'zermelo/backend'

module Zermelo

  module Backends

    class Stub

      include Zermelo::Backend

      def filter(ids_key, associated_class, callback_target_class = nil,
        callback_target_id = nil, callbacks = nil, sort_order = nil)

        raise "Not supported"
      end

      def get_multiple(*attr_keys)
        raise "Not supported"
      end

      def begin_transaction
        raise "Not supported"
      end

      def commit_transaction
        raise "Not supported"
      end

      def abort_transaction
        raise "Not supported"
      end

      private

      def change(op, key, value = nil, key_to = nil, value_to = nil)
        # no-op
      end

    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zermelo-1.4.1 lib/zermelo/backends/stub.rb
zermelo-1.4.0 lib/zermelo/backends/stub.rb
zermelo-1.3.0 lib/zermelo/backends/stub.rb
zermelo-1.2.1 lib/zermelo/backends/stub.rb
zermelo-1.2.0 lib/zermelo/backends/stub.rb