Class: Elasticband::Filter::Not

Inherits:
Elasticband::Filter show all
Defined in:
lib/elasticband/filter/not.rb

Constant Summary

Constants inherited from Elasticband::Filter

PARSE_FILTERS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Elasticband::Filter

parse, #parse

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, options = {})
  self.other_filter = other_filter
  self.options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/elasticband/filter/not.rb', line 4

def options
  @options
end

#other_filterObject

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_hObject



11
12
13
# File 'lib/elasticband/filter/not.rb', line 11

def to_h
  { not: filter_hash }
end