Class: QuerySyntax::Scope
- Inherits:
-
Object
- Object
- QuerySyntax::Scope
- Defined in:
- lib/query_syntax/scope.rb
Overview
Scopes are conditions seperated by operators (NOT | AND | OR)
Direct Known Subclasses
Instance Attribute Summary collapse
-
#operator ⇒ Object
Returns the value of attribute operator.
Instance Method Summary collapse
-
#initialize(operator = "AND") ⇒ Scope
constructor
A new instance of Scope.
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
#operator ⇒ Object
Returns the value of attribute operator.
12 13 14 |
# File 'lib/query_syntax/scope.rb', line 12 def operator @operator end |