Class: Elasticband::Filter::Not
- Inherits:
-
Elasticband::Filter
- Object
- Elasticband::Filter
- Elasticband::Filter::Not
- Defined in:
- lib/elasticband/filter/not.rb
Constant Summary
Constants inherited from Elasticband::Filter
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#other_filter ⇒ Object
Returns the value of attribute other_filter.
Instance Method Summary collapse
-
#initialize(other_filter, options = {}) ⇒ Not
constructor
A new instance of Not.
- #to_h ⇒ Object
Methods inherited from Elasticband::Filter
Constructor Details
#initialize(other_filter, options = {}) ⇒ Not
Returns a new instance of Not.
6 7 8 9 |
# File 'lib/elasticband/filter/not.rb', line 6 def initialize(other_filter, = {}) self.other_filter = other_filter self. = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/elasticband/filter/not.rb', line 4 def @options end |
#other_filter ⇒ Object
Returns the value of attribute other_filter.
4 5 6 |
# File 'lib/elasticband/filter/not.rb', line 4 def other_filter @other_filter end |
Instance Method Details
#to_h ⇒ Object
11 12 13 |
# File 'lib/elasticband/filter/not.rb', line 11 def to_h { not: filter_hash } end |