Class: DbSeeder::Configuration
- Inherits:
-
Object
- Object
- DbSeeder::Configuration
- Defined in:
- lib/db_seeder/configuration.rb
Instance Attribute Summary collapse
-
#batch_size ⇒ Object
Returns the value of attribute batch_size.
-
#excluded_tables ⇒ Object
Returns the value of attribute excluded_tables.
-
#format ⇒ Object
Returns the value of attribute format.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/db_seeder/configuration.rb', line 7 def initialize @output_path = "db/seeds" @excluded_tables = %w[schema_migrations ar_internal_metadata] @batch_size = 1000 @format = :ruby end |
Instance Attribute Details
#batch_size ⇒ Object
Returns the value of attribute batch_size.
5 6 7 |
# File 'lib/db_seeder/configuration.rb', line 5 def batch_size @batch_size end |
#excluded_tables ⇒ Object
Returns the value of attribute excluded_tables.
5 6 7 |
# File 'lib/db_seeder/configuration.rb', line 5 def excluded_tables @excluded_tables end |
#format ⇒ Object
Returns the value of attribute format.
5 6 7 |
# File 'lib/db_seeder/configuration.rb', line 5 def format @format end |
#output_path ⇒ Object
Returns the value of attribute output_path.
5 6 7 |
# File 'lib/db_seeder/configuration.rb', line 5 def output_path @output_path end |