Sha256: 07db8236be691b3794296a224008073fbbd490ff086d24060ee877d97aff5c42

Contents?: true

Size: 494 Bytes

Versions: 12

Compression:

Stored size: 494 Bytes

Contents

module Sources

  # Source wrappers can be used to rewrite data before it goes into the index.
  #
  # For example if you want to normalize data.
  #
  module Wrappers # :nodoc:all

    class Base

      attr_reader :source

      # Wraps an indexing category.
      #
      def initialize source
        @source = source
      end

      # Default is delegation for all methods
      #
      delegate :harvest, :connect_backend, :take_snapshot, :key_format, :to => :source

    end

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
picky-2.7.0 lib/picky/sources/wrappers/base.rb
picky-2.6.0 lib/picky/sources/wrappers/base.rb
picky-2.5.2 lib/picky/sources/wrappers/base.rb
picky-2.5.1 lib/picky/sources/wrappers/base.rb
picky-2.5.0 lib/picky/sources/wrappers/base.rb
picky-2.4.3 lib/picky/sources/wrappers/base.rb
picky-2.4.2 lib/picky/sources/wrappers/base.rb
picky-2.4.1 lib/picky/sources/wrappers/base.rb
picky-2.4.0 lib/picky/sources/wrappers/base.rb
picky-2.3.0 lib/picky/sources/wrappers/base.rb
picky-2.2.1 lib/picky/sources/wrappers/base.rb
picky-2.2.0 lib/picky/sources/wrappers/base.rb