Class: Masking::Config
- Inherits:
-
Object
- Object
- Masking::Config
- 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
-
#target_columns_file_path ⇒ Object
Returns the value of attribute target_columns_file_path.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #target_columns ⇒ Object
Constructor Details
#initialize ⇒ Config
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_path ⇒ Object
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_columns ⇒ Object
30 31 32 |
# File 'lib/masking/config.rb', line 30 def target_columns @target_columns ||= TargetColumns.new(target_columns_file_path) end |