Class: Crowbar::Client::Filter::Base
- Inherits:
-
Object
- Object
- Crowbar::Client::Filter::Base
- Defined in:
- lib/crowbar/client/filter/base.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #process ⇒ Object
- #result ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Base
23 24 25 |
# File 'lib/crowbar/client/filter/base.rb', line 23 def initialize( = {}) self. = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
21 22 23 |
# File 'lib/crowbar/client/filter/base.rb', line 21 def @options end |
Instance Method Details
#process ⇒ Object
35 36 37 |
# File 'lib/crowbar/client/filter/base.rb', line 35 def process raise BadFilterError end |
#result ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/crowbar/client/filter/base.rb', line 27 def result if [:filter].present? process else [:values] end end |