Class: Arelastic::Filters::Not
- Inherits:
-
Filter
- Object
- Nodes::Node
- Filter
- Arelastic::Filters::Not
- Defined in:
- lib/arelastic/filters/not.rb
Instance Attribute Summary collapse
-
#expr ⇒ Object
readonly
Returns the value of attribute expr.
Instance Method Summary collapse
- #as_elastic ⇒ Object
-
#initialize(expr) ⇒ Not
constructor
A new instance of Not.
Methods inherited from Filter
Methods inherited from Nodes::Node
Methods included from Arities::Binary
Methods included from Arities::Polyadic
Methods included from Arities::Unary
Constructor Details
#initialize(expr) ⇒ Not
Returns a new instance of Not.
6 7 8 |
# File 'lib/arelastic/filters/not.rb', line 6 def initialize expr @expr = expr end |
Instance Attribute Details
#expr ⇒ Object (readonly)
Returns the value of attribute expr.
4 5 6 |
# File 'lib/arelastic/filters/not.rb', line 4 def expr @expr end |
Instance Method Details
#as_elastic ⇒ Object
10 11 12 |
# File 'lib/arelastic/filters/not.rb', line 10 def as_elastic {"not" => convert_to_elastic(expr)} end |