Class: QuerySyntax::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/query_syntax/scope.rb

Overview

Scopes are conditions seperated by operators (NOT | AND | OR)

Direct Known Subclasses

CriteriaScope, NestedScope

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operator = "AND") ⇒ Scope

Returns a new instance of Scope.



8
9
10
# File 'lib/query_syntax/scope.rb', line 8

def initialize(operator="AND")
  @operator = operator
end

Instance Attribute Details

#operatorObject

Returns the value of attribute operator.



12
13
14
# File 'lib/query_syntax/scope.rb', line 12

def operator
  @operator
end