Sha256: 5f72104f6e7f7c77ce6b23deae32560e9b3d3f1af27d277c690116cbb5605c63

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

module ClarkKent
  class ReportNumberFilter < ReportFilter
    include Cloneable

  	attr_accessible :max_value, :min_value

    def filter_match_params
      [[self.min_param_name,self.min_value],[self.max_param_name,self.max_value]]
    end

    def min_param_name
      "#{self.filter_name}_min"
    end

    def max_param_name
      "#{self.filter_name}_max"
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clark_kent-0.0.1 app/models/clark_kent/report_number_filter.rb