Sha256: a95bc905bff3f197545b106a53d9dbb17decb1e89c7c6c7a6a6d6dc88f4b784e

Contents?: true

Size: 476 Bytes

Versions: 11

Compression:

Stored size: 476 Bytes

Contents

module Sources
  
  # TODO Document.
  #
  module Wrappers # :nodoc:all
    
    class Base
      
      attr_reader :backend, :category
      
      # Wraps an indexing category.
      #
      def initialize category
        @category = category
        @backend  = category.source
      end
      
      # Default is delegation for all methods
      #
      delegate :harvest, :connect_backend, :take_snapshot, :key_format, :to => :backend
      
    end
      
  end
  
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
picky-1.5.2 lib/picky/sources/wrappers/base.rb
picky-1.5.1 lib/picky/sources/wrappers/base.rb
picky-1.5.0 lib/picky/sources/wrappers/base.rb
picky-1.4.3 lib/picky/sources/wrappers/base.rb
picky-1.4.2 lib/picky/sources/wrappers/base.rb
picky-1.4.1 lib/picky/sources/wrappers/base.rb
picky-1.4.0 lib/picky/sources/wrappers/base.rb
picky-1.3.4 lib/picky/sources/wrappers/base.rb
picky-1.3.3 lib/picky/sources/wrappers/base.rb
picky-1.3.2 lib/picky/sources/wrappers/base.rb
picky-1.3.1 lib/picky/sources/wrappers/base.rb