Sha256: 3ca08a4714352ed56c1265ecec94af44418c68088512603c03186c51cff97d35

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

module CloudSesame
  module Query
    module AST
      class Operator
        SYMBOL = nil

        attr_reader :context, :options

        def initialize(context, options = {})
          @context = context
          @options = options
        end

        def boost
          " boost=#{ options[:boost] }" if options[:boost]
        end

        def symbol
          self.class::SYMBOL
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
CloudSesame-0.6.8 lib/cloud_sesame/query/ast/operator.rb
CloudSesame-0.6.7 lib/cloud_sesame/query/ast/operator.rb
CloudSesame-0.6.6 lib/cloud_sesame/query/ast/operator.rb
CloudSesame-0.6.5 lib/cloud_sesame/query/ast/operator.rb