Class: SoftLayer::ObjectFilter::CriteriaAcceptor

Inherits:
Object
  • Object
show all
Defined in:
lib/softlayer/ObjectFilter.rb

Instance Method Summary collapse

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