Class: ActiveExport::Configuration
- Inherits:
-
Object
- Object
- ActiveExport::Configuration
- Defined in:
- lib/active_export/configuration.rb
Instance Attribute Summary collapse
-
#always_reload ⇒ Object
Returns the value of attribute always_reload.
-
#default_csv_options ⇒ Object
Returns the value of attribute default_csv_options.
-
#default_value_label_scope ⇒ Object
Returns the value of attribute default_value_label_scope.
-
#no_source_raise_error ⇒ Object
Returns the value of attribute no_source_raise_error.
-
#sources ⇒ Object
Returns the value of attribute sources.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 17 |
# File 'lib/active_export/configuration.rb', line 11 def initialize @sources = {} = { col_sep: ',', row_sep: "\n", force_quotes: true } @always_reload = false @default_value_label_scope = [:default_value_labels] @no_source_raise_error = false end |
Instance Attribute Details
#always_reload ⇒ Object
Returns the value of attribute always_reload.
7 8 9 |
# File 'lib/active_export/configuration.rb', line 7 def always_reload @always_reload end |
#default_csv_options ⇒ Object
Returns the value of attribute default_csv_options.
6 7 8 |
# File 'lib/active_export/configuration.rb', line 6 def end |
#default_value_label_scope ⇒ Object
Returns the value of attribute default_value_label_scope.
8 9 10 |
# File 'lib/active_export/configuration.rb', line 8 def default_value_label_scope @default_value_label_scope end |
#no_source_raise_error ⇒ Object
Returns the value of attribute no_source_raise_error.
9 10 11 |
# File 'lib/active_export/configuration.rb', line 9 def no_source_raise_error @no_source_raise_error end |
#sources ⇒ Object
Returns the value of attribute sources.
5 6 7 |
# File 'lib/active_export/configuration.rb', line 5 def sources @sources end |