Class: ActiveReport::Configuration
- Inherits:
-
Object
- Object
- ActiveReport::Configuration
- Defined in:
- lib/active_report/configuration.rb
Instance Attribute Summary collapse
-
#csv_force_encoding ⇒ Object
Returns the value of attribute csv_force_encoding.
-
#csv_options ⇒ Object
Returns the value of attribute csv_options.
-
#import_adapter ⇒ Object
Returns the value of attribute import_adapter.
-
#import_options ⇒ Object
Returns the value of attribute import_options.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 |
# File 'lib/active_report/configuration.rb', line 8 def initialize @csv_force_encoding = true @csv_options = { external_encoding: 'ISO-8859-1', internal_encoding: 'UTF-8' } @import_adapter = 'mysql2_adapter' @import_options = { validate: false, on_duplicate_key_ignore: true } end |
Instance Attribute Details
#csv_force_encoding ⇒ Object
Returns the value of attribute csv_force_encoding.
6 7 8 |
# File 'lib/active_report/configuration.rb', line 6 def csv_force_encoding @csv_force_encoding end |
#csv_options ⇒ Object
Returns the value of attribute csv_options.
6 7 8 |
# File 'lib/active_report/configuration.rb', line 6 def @csv_options end |
#import_adapter ⇒ Object
Returns the value of attribute import_adapter.
6 7 8 |
# File 'lib/active_report/configuration.rb', line 6 def import_adapter @import_adapter end |
#import_options ⇒ Object
Returns the value of attribute import_options.
6 7 8 |
# File 'lib/active_report/configuration.rb', line 6 def @import_options end |