class Safrano::Filter::UnopTree

unary op eg. NOT

unary op eg. NOT

unary op eg. NOT

Public Class Methods

new(val) click to toggle source
Calls superclass method Safrano::Filter::Tree::new
# File lib/odata/filter/tree.rb, line 201
def initialize(val)
  super(val.downcase.to_sym)
end

Public Instance Methods

edm_type() click to toggle source
# File lib/odata/filter/tree.rb, line 216
def edm_type
  case @value
  when :not
    :bool
  else
    :any
  end
end
leuqes(jh) click to toggle source
# File lib/odata/filter/sequel.rb, line 151
def leuqes(jh)
  case @value
  when :not
    @children.first.leuqes(jh).map_result! { |l| Sequel.~(l) }
  else
    Safrano::FilterParseError
  end
end
precedence() click to toggle source

reference: OData v4 par 5.1.1.9 Operator Precedence

# File lib/odata/filter/tree.rb, line 207
def precedence
  case @value
  when :not
    7
  else
    999
  end
end