class Safrano::Filter::Literal
Literals are unquoted words without /
Literals are unquoted words
Literals are unquoted words without /
Public Instance Methods
accept?(tok, typ)
click to toggle source
# File lib/odata/filter/tree.rb, line 369 def accept?(tok, typ) case typ when :Delimiter, :Separator, :BinopBool, :BinopArithm nil else Parser::ErrorInvalidToken.new(tok, typ, self) end end
as_string()
click to toggle source
# File lib/odata/filter/sequel.rb, line 267 def as_string @value end
attach(child)
click to toggle source
error, Literal
are leaves when the child is a IdentityFuncTree
then this looks like an attempt to use a unknown function, eg. ceil(Total) instead of ceiling(Total)
Calls superclass method
Safrano::Filter::Leave#attach
# File lib/odata/filter/tree.rb, line 386 def attach(child) if child.is_a? Safrano::Filter::IdentityFuncTree Safrano::FilterUnknownFunctionError.new(value) else super end end
edm_type()
click to toggle source
# File lib/odata/filter/tree.rb, line 378 def edm_type :any end
leuqes(jh)
click to toggle source
# File lib/odata/filter/sequel.rb, line 247 def leuqes(jh) return Safrano::FilterParseErrorWrongColumnName unless jh.start_model.db_schema.key?(@value.to_sym) success Sequel[jh.start_model.table_name][@value.to_sym] end
leuqes_ends_like(_jh)
click to toggle source
# File lib/odata/filter/sequel.rb, line 259 def leuqes_ends_like(_jh) success "%#{@value}" end
leuqes_starts_like(_jh)
click to toggle source
non stantard extensions to support things like substringof(Rhum, name) ????
# File lib/odata/filter/sequel.rb, line 255 def leuqes_starts_like(_jh) success "#{@value}%" end
leuqes_substringof_sig1(_jh)
click to toggle source
# File lib/odata/filter/sequel.rb, line 263 def leuqes_substringof_sig1(_jh) success "%#{@value}%" end