Class: SoftLayer::ObjectFilter::CriteriaAcceptor
- Inherits:
-
Object
- Object
- SoftLayer::ObjectFilter::CriteriaAcceptor
- Defined in:
- lib/softlayer/ObjectFilter.rb
Instance Method Summary collapse
-
#initialize(filter, key_path) ⇒ CriteriaAcceptor
constructor
A new instance of CriteriaAcceptor.
- #when_it(criteria) ⇒ Object
Constructor Details
#initialize(filter, key_path) ⇒ CriteriaAcceptor
Returns a new instance of CriteriaAcceptor.
87 88 89 90 |
# File 'lib/softlayer/ObjectFilter.rb', line 87 def initialize(filter, key_path) @filter = filter @key_path = key_path end |
Instance Method Details
#when_it(criteria) ⇒ Object
92 93 94 |
# File 'lib/softlayer/ObjectFilter.rb', line 92 def when_it(criteria) @filter.set_criteria_for_key_path(@key_path, criteria) end |