class PIM::FilterBuilder

Public Class Methods

build_filter(data_module, name, label, &block) click to toggle source
# File pim.rb, line 7543
def self.build_filter data_module, name, label, &block
  builder = FilterBuilder.new name, label
  DataModuleObject.set_data_module(builder, data_module)
  builder.instance_exec(&block) if block
  builder.build
end
new(name, label) click to toggle source
# File pim.rb, line 7558
def initialize name, label
  @name = name
  @label = label
end

Public Instance Methods

build() click to toggle source
# File pim.rb, line 7550
def build
  filter = PIM::Filter.new @name, @label, @query, @roles
  DataModuleObject.set_data_module(filter, data_module)
  filter
end