lib/fattureincloud_ruby_sdk/filter/filter.rb
def and_filter(filter)
      if @expression.nil? || filter.nil? || filter.expression.nil?
        raise 'Cannot create a conjunction with an empty expression.'
      end

      left = @expression
      right = filter.expression
      @expression = Conjunction.new(left, right)
    end
# Adds an AND expression to the filter.
# @param [Filter] filter The filter.
Adds an AND expression to the filter.
Adds an AND expression to the filter .
def and_filter(filter)
      if @expression.nil? || filter.nil? || filter.expression.nil?
        raise 'Cannot create a conjunction with an empty expression.'
      end
      left = @expression
      right = filter.expression
      @expression = Conjunction.new(left, right)
    end
def and_filter ( filter ) if @expression . nil? || filter . nil? || filter . expression . nil? raise 'Cannot create a conjunction with an empty expression.' end left = @expression right = filter . expression @expression = Conjunction . new ( left , right ) end
Adds an AND expression to the filter.
Adds an AND expression to the filter .
filter
filter The filter.
filter The filter .