Class: Safrano::Filter::Guid16

Inherits:
Leave show all
Defined in:
lib/odata/filter/base.rb,
lib/odata/filter/tree.rb

Overview

Edm guid

Instance Attribute Summary

Attributes inherited from Leave

#parent

Attributes inherited from Node

#value

Instance Method Summary collapse

Methods inherited from Leave

#attach, #check_types

Methods inherited from Node

#==, #initialize, #success

Constructor Details

This class inherits a constructor from Safrano::Filter::Node

Instance Method Details

#accept?(tok, typ) ⇒ Boolean

Returns:

  • (Boolean)


384
385
386
387
388
389
390
391
# File 'lib/odata/filter/tree.rb', line 384

def accept?(tok, typ)
  case typ
  when :Delimiter, :Separator, :BinopBool, :BinopArithm
    nil
  else
    Parser::ErrorInvalidToken.new(tok, typ, self)
  end
end

#edm_typeObject



393
394
395
# File 'lib/odata/filter/tree.rb', line 393

def edm_type
  :guid
end