class Kampainer::Attribute::Filter

Public Class Methods

new(options) click to toggle source
# File lib/kampainer/contact_attribute.rb, line 9
def initialize(options)
  @include_all_default_attributes = false
  @include_all_custom_attributes = false
  @include_all_system_attributes = false
  options.each do |k, v|
    @include_all_default_attributes = !!v if k.to_s =~ /default/ || v.to_s =~ /default/
    @include_all_custom_attributes = !!v if k.to_s =~ /custom/ || v.to_s =~ /custom/
    @include_all_system_attributes = !!v if k.to_s =~ /system/ || v.to_s =~ /system/
  end
end