Class: Masking::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/masking/config.rb,
lib/masking/config/target_columns.rb,
lib/masking/config/target_columns/table.rb,
lib/masking/config/target_columns/column.rb,
lib/masking/config/target_columns/method.rb,
lib/masking/config/target_columns/method/date.rb,
lib/masking/config/target_columns/method/null.rb,
lib/masking/config/target_columns/method/time.rb,
lib/masking/config/target_columns/method/float.rb,
lib/masking/config/target_columns/method/binary.rb,
lib/masking/config/target_columns/method/string.rb,
lib/masking/config/target_columns/method/boolean.rb,
lib/masking/config/target_columns/method/integer.rb,
lib/masking/config/target_columns/method/string_binary_distinctor.rb

Defined Under Namespace

Classes: TargetColumns

Constant Summary collapse

DEFAULT_TARGET_COLUMNS_YAML_PATH =
Pathname('masking.yml')

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



21
22
23
# File 'lib/masking/config.rb', line 21

def initialize
  @target_columns_file_path = DEFAULT_TARGET_COLUMNS_YAML_PATH
end

Instance Attribute Details

#target_columns_file_pathObject

Returns the value of attribute target_columns_file_path.



19
20
21
# File 'lib/masking/config.rb', line 19

def target_columns_file_path
  @target_columns_file_path
end

Instance Method Details

#target_columnsObject



30
31
32
# File 'lib/masking/config.rb', line 30

def target_columns
  @target_columns ||= TargetColumns.new(target_columns_file_path)
end