Sha256: acf1ec8500cd5a5a95d43a1316ff0a7ce1bf89232ba8108346fa5328db0dfe24

Contents?: true

Size: 614 Bytes

Versions: 14

Compression:

Stored size: 614 Bytes

Contents

module Access
  class Filter
    include Access::MuchMeta

    def self.search(options = {})
      # Internal Admin only Call
      Access::Api.new.search_filters options
    end

    def self.find(filter_key, options = {})
      # Internal Admin only Call
      Access::Api.new.find_filter filter_key, options
    end

    def self.process_batch(chunk)
      chunk.map { |filter| new(filter) }
    end

    def initialize(values)
      @used_fields = []
      set_up_methods(values)
      set_values(values)
    end

    def filter_key
      @filter_id
    end

    def name
      @filter_name
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
access-2.3.0.pre.rc2 lib/access/filter.rb
access-2.3.0.pre.rc1 lib/access/filter.rb
access-2.2.0 lib/access/filter.rb
access-2.1.5 lib/access/filter.rb
access-2.1.4 lib/access/filter.rb
access-2.1.3 lib/access/filter.rb
access-2.1.2 lib/access/filter.rb
access-2.1.1 lib/access/filter.rb
access-2.1.0 lib/access/filter.rb
access-2.0.55 lib/access/filter.rb
access-2.0.54 lib/access/filter.rb
access-2.0.53 lib/access/filter.rb
access-2.0.52 lib/access/filter.rb
access-2.0.51 lib/access/filter.rb