Class: GitlabZOQL::Parser::Statement::ComparisonPredicate

Inherits:
Node
  • Object
show all
Defined in:
lib/gitlab-zoql/parser/statement.rb

Direct Known Subclasses

Equals, Greater, GreaterOrEquals, Less, LessOrEquals

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #to_sql

Constructor Details

#initialize(left, right) ⇒ ComparisonPredicate

Returns a new instance of ComparisonPredicate.



91
92
93
94
# File 'lib/gitlab-zoql/parser/statement.rb', line 91

def initialize(left, right)
  @left = left
  @right = right
end

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



96
97
98
# File 'lib/gitlab-zoql/parser/statement.rb', line 96

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



96
97
98
# File 'lib/gitlab-zoql/parser/statement.rb', line 96

def right
  @right
end