Sha256: a4fd4d5812cd04c4abfac1706340c43ebbb9cbdd66e1a1f39d8b78ef2533de1b
Contents?: true
Size: 836 Bytes
Versions: 3
Compression:
Stored size: 836 Bytes
Contents
# frozen_string_literal: true require_relative "basket/backend_adapter" require_relative "basket/backend_adapter/hash_backend" require_relative "basket/backend_adapter/redis_backend" require_relative "basket/batcher" require_relative "basket/configuration" require_relative "basket/error" require_relative "basket/handle_add" require_relative "basket/queue_collection" require_relative "basket/version" module Basket class Error < StandardError; end def self.config @config ||= Configuration.new end def self.configure yield(config) end def self.contents @queue_collection.data end def self.queue_collection @queue_collection ||= Basket::QueueCollection.new end def self.add(queue, data) HandleAdd.call(queue, data) end def self.clear_all queue_collection.reset_backend end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basket-0.0.5 | lib/basket.rb |
basket-0.0.4 | lib/basket.rb |
basket-0.0.3 | lib/basket.rb |