Class: InsightsExport::Configuration
- Inherits:
-
Object
- Object
- InsightsExport::Configuration
- Defined in:
- lib/insights_export/configuration.rb
Instance Attribute Summary collapse
-
#debug ⇒ Object
Print a backtrace when the export throws an exception.
-
#except_models ⇒ Object
Exclude these models from the export Array of strings or regexps to filter or blank to export all.
-
#export_path ⇒ Object
The path to the export file Defaults to “#Rails.root/config/insights.yml”.
-
#only_models ⇒ Object
Export only models in this list Array of strings or regexps to filter or blank to export all.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
19 20 21 22 23 24 |
# File 'lib/insights_export/configuration.rb', line 19 def initialize @export_path = "#{Rails.root}/config/insights.yml" @only_models = [] @except_models = [] @debug = false end |
Instance Attribute Details
#debug ⇒ Object
Print a backtrace when the export throws an exception. Default: false
17 18 19 |
# File 'lib/insights_export/configuration.rb', line 17 def debug @debug end |
#except_models ⇒ Object
Exclude these models from the export Array of strings or regexps to filter or blank to export all.
13 14 15 |
# File 'lib/insights_export/configuration.rb', line 13 def except_models @except_models end |
#export_path ⇒ Object
The path to the export file Defaults to “#Rails.root/config/insights.yml”
5 6 7 |
# File 'lib/insights_export/configuration.rb', line 5 def export_path @export_path end |
#only_models ⇒ Object
Export only models in this list Array of strings or regexps to filter or blank to export all.
9 10 11 |
# File 'lib/insights_export/configuration.rb', line 9 def only_models @only_models end |