Sha256: f948923e558821ad8dcd328fc0efb466881d9ad06311f3c63a5d0afbb918bd68

Contents?: true

Size: 543 Bytes

Versions: 5

Compression:

Stored size: 543 Bytes

Contents

module ActiveEnum
  module Storage
    autoload :MemoryStore, "active_enum/storage/memory_store"

    class NotImplemented < StandardError; end

    class AbstractStore 
      def initialize(enum_class, order)
        @enum, @order = enum_class, order
      end

      def set(id, name, meta=nil)
        raise NotImplemented
      end

      def get_by_id(id)
        raise NotImplemented
      end

      def get_by_name(name)
        raise NotImplemented
      end

      def values
        raise NotImplemented
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_enum-0.9.1 lib/active_enum/storage/abstract_store.rb
active_enum-0.9.0 lib/active_enum/storage/abstract_store.rb
active_enum-0.8.2 lib/active_enum/storage/abstract_store.rb
active_enum-0.8.1 lib/active_enum/storage/abstract_store.rb
active_enum-0.8.0 lib/active_enum/storage/abstract_store.rb