lib/fattureincloud_ruby_sdk/filter/filter.rb
def or(field, operator, value)
      if @expression.nil?
        raise 'Cannot create a disjunction with an empty expression.'
      end

      left = @expression
      right = Condition.new(field, operator, value)
      @expression = Disjunction.new(left, right)
      self
    end
# Adds an OR condition to the filter.
# @param [String] field The field to compare.
# @param [Operator] operator The operator to use.
# @param [String][Numeric][Boolean][nil] value The value to compare.
Adds an OR condition to the filter.
Adds an OR condition to the filter .
def or(field, operator, value)
      if @expression.nil?
        raise 'Cannot create a disjunction with an empty expression.'
      end
      left = @expression
      right = Condition.new(field, operator, value)
      @expression = Disjunction.new(left, right)
      self
    end
def or ( field , operator , value ) if @expression . nil? raise 'Cannot create a disjunction with an empty expression.' end left = @expression right = Condition . new ( field , operator , value ) @expression = Disjunction . new ( left , right ) self end
Adds an OR condition to the filter.
Adds an OR condition to the filter .
field
operator
value
operator The operator to use.
operator The operator to use .
value The value to compare.
value The value to compare .