Sha256: 05c02701483d5917dab0c0784745f3159f64fe04e09190e83ba5636632943439

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

module Piglet
  module Relation
    class Filter # :nodoc:
      include Relation
    
      def initialize(relation, expression)
        @sources, @expression = [relation], expression
      end
    
      def to_s
        "FILTER #{@sources.first.alias} BY #{@expression}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
piglet-0.2.4 lib/piglet/relation/filter.rb
piglet-0.2.3 lib/piglet/relation/filter.rb
piglet-0.2.2 lib/piglet/relation/filter.rb
piglet-0.2.0 lib/piglet/relation/filter.rb
piglet-0.1.2 lib/piglet/relation/filter.rb