lib/muster/results.rb
def filtered
      return self if filters.empty?

      filtered_results = filters.each_with_object({}) do |(key, options), results|
        results[key] = filter(key, *options)
      end

      self.class.new(filtered_results)
    end
def filtered
      return self if filters.empty?

      filtered_results = filters.each_with_object({}) do |(key, options), results|
        results[key] = filter(key, *options)
      end

      self.class.new(filtered_results)
    end
def filtered return self if filters . empty? filtered_results = filters . each_with_object ( { } ) do | ( key , options ) , results | results [ key ] = filter ( key , options ) end self . class . new ( filtered_results ) end
Returns the raw data with all of the filters applied

 If no filters were added, this method simply returns self.

 @return [Muster::Results]

 @example

   results.add_filter(:select, :only => [:id, :name])
   results.add_dilter(:page, 1)
   results.filtered   #=> { 'select' => [:id, :name], 'page' => 1 }
Returns the raw data with all of the filters applied