Class: ActiveSanitization::Configuration
- Inherits:
-
Object
- Object
- ActiveSanitization::Configuration
- Defined in:
- lib/active_sanitization.rb
Instance Attribute Summary collapse
-
#active_record_connection ⇒ Object
Returns the value of attribute active_record_connection.
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#aws_access_key_id ⇒ Object
Returns the value of attribute aws_access_key_id.
-
#aws_secret_access_key ⇒ Object
Returns the value of attribute aws_secret_access_key.
-
#custom_sanitization ⇒ Object
Returns the value of attribute custom_sanitization.
-
#db_config ⇒ Object
Returns the value of attribute db_config.
-
#env ⇒ Object
Returns the value of attribute env.
-
#loggers ⇒ Object
Returns the value of attribute loggers.
-
#root ⇒ Object
Returns the value of attribute root.
-
#s3_bucket ⇒ Object
Returns the value of attribute s3_bucket.
-
#s3_bucket_region ⇒ Object
Returns the value of attribute s3_bucket_region.
-
#sanitization_columns ⇒ Object
Returns the value of attribute sanitization_columns.
-
#tables_to_ignore ⇒ Object
Returns the value of attribute tables_to_ignore.
-
#tables_to_sanitize ⇒ Object
Returns the value of attribute tables_to_sanitize.
-
#tables_to_truncate ⇒ Object
Returns the value of attribute tables_to_truncate.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/active_sanitization.rb', line 20 def initialize @tables_to_sanitize = {} @tables_to_truncate = {} @tables_to_ignore = {} @sanitization_columns = {} @s3_bucket = 'active_sanitization' @env = ENV['RACK_ENV'] || ENV['RAILS_ENV'] @active_record_connection = ActiveRecord::Base.connection @root = File.dirname(File.dirname(__FILE__)) @loggers = [Logger.new(STDOUT)] end |
Instance Attribute Details
#active_record_connection ⇒ Object
Returns the value of attribute active_record_connection.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def active_record_connection @active_record_connection end |
#app_name ⇒ Object
Returns the value of attribute app_name.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def app_name @app_name end |
#aws_access_key_id ⇒ Object
Returns the value of attribute aws_access_key_id.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def aws_access_key_id @aws_access_key_id end |
#aws_secret_access_key ⇒ Object
Returns the value of attribute aws_secret_access_key.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def aws_secret_access_key @aws_secret_access_key end |
#custom_sanitization ⇒ Object
Returns the value of attribute custom_sanitization.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def custom_sanitization @custom_sanitization end |
#db_config ⇒ Object
Returns the value of attribute db_config.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def db_config @db_config end |
#env ⇒ Object
Returns the value of attribute env.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def env @env end |
#loggers ⇒ Object
Returns the value of attribute loggers.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def loggers @loggers end |
#root ⇒ Object
Returns the value of attribute root.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def root @root end |
#s3_bucket ⇒ Object
Returns the value of attribute s3_bucket.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def s3_bucket @s3_bucket end |
#s3_bucket_region ⇒ Object
Returns the value of attribute s3_bucket_region.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def s3_bucket_region @s3_bucket_region end |
#sanitization_columns ⇒ Object
Returns the value of attribute sanitization_columns.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def sanitization_columns @sanitization_columns end |
#tables_to_ignore ⇒ Object
Returns the value of attribute tables_to_ignore.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def tables_to_ignore @tables_to_ignore end |
#tables_to_sanitize ⇒ Object
Returns the value of attribute tables_to_sanitize.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def tables_to_sanitize @tables_to_sanitize end |
#tables_to_truncate ⇒ Object
Returns the value of attribute tables_to_truncate.
18 19 20 |
# File 'lib/active_sanitization.rb', line 18 def tables_to_truncate @tables_to_truncate end |