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