Class: ActiveSanitization::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/active_sanitization.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_connectionObject

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_nameObject

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_idObject

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_keyObject

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_sanitizationObject

Returns the value of attribute custom_sanitization.



18
19
20
# File 'lib/active_sanitization.rb', line 18

def custom_sanitization
  @custom_sanitization
end

#db_configObject

Returns the value of attribute db_config.



18
19
20
# File 'lib/active_sanitization.rb', line 18

def db_config
  @db_config
end

#envObject

Returns the value of attribute env.



18
19
20
# File 'lib/active_sanitization.rb', line 18

def env
  @env
end

#loggersObject

Returns the value of attribute loggers.



18
19
20
# File 'lib/active_sanitization.rb', line 18

def loggers
  @loggers
end

#rootObject

Returns the value of attribute root.



18
19
20
# File 'lib/active_sanitization.rb', line 18

def root
  @root
end

#s3_bucketObject

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_regionObject

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_columnsObject

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_ignoreObject

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_sanitizeObject

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_truncateObject

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