web/app/models/results_filter.rb
changeset 226 4e1806b2569a
child 235 99903c2acca1
equal deleted inserted replaced
225:1717c8a3eba6 226:4e1806b2569a
       
     1 class ResultsFilter
       
     2   include ActiveModel::Model
       
     3 
       
     4   attr_accessor :benchmark_configurations
       
     5   attr_accessor :tags
       
     6 
       
     7   def initialize(*args)
       
     8     super
       
     9     @benchmark_configurations ||= {}
       
    10     @tags ||= {}
       
    11   end
       
    12 
       
    13 
       
    14   def filtered_results()
       
    15     return BenchmarkBatch.where(benchmark_configuration_id: @benchmark_configurations.keys)
       
    16   end
       
    17 
       
    18   private
       
    19 
       
    20 end