Sha256: 82f9bb45b642d3612a314d6029d2ac132693384b1633bcd04e70b534db629cbb
Contents?: true
Size: 703 Bytes
Versions: 8
Compression:
Stored size: 703 Bytes
Contents
module Access class Filter 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) self.class.class_eval { attr_reader *values.keys } values.each do |attribute_name, attribute_value| self.instance_variable_set("@#{attribute_name}", attribute_value) end end def filter_key @filter_id end def name @filter_name end end end
Version data entries
8 entries across 8 versions & 1 rubygems