class Crowbar::Client::Filter::Hash
Filter
to reduce a hash by a given search clause
Public Instance Methods
process()
click to toggle source
# File lib/crowbar/client/filter/hash.rb, line 24 def process options[:values].select do |row| result = row.values.map do |value| value.to_s.include? options[:filter] end result.include? true end end