Class: InsightsExport::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#debugObject

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_modelsObject

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_pathObject

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_modelsObject

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