Class: ActiveScaffold::Config::ExportTool

Inherits:
Base show all
Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb

Constant Summary collapse

ActiveScaffold::DataStructures::ActionLink.new('show_export_tool', :label => :export, :type => :table, :security_method => :export_tool_authorized?)
@@empty_field_text =
''
@@delimiter =
","
@@force_quotes =
false
@@maximum_rows =
10000
@@skip_header =
false

Instance Attribute Summary collapse

Attributes inherited from Base

#user

Instance Method Summary collapse

Methods inherited from Base

#crud_type, #formats, #formats=, inherited

Methods included from ActiveScaffold::Configurable

#configure, #method_missing

Constructor Details

#initialize(core_config) ⇒ ExportTool

Returns a new instance of ExportTool.



6
7
8
9
10
11
12
13
14
15
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb', line 6

def initialize(core_config)
  @core = core_config

  # inherit from global scope
  @empty_field_text = self.class.empty_field_text
  @delimiter = self.class.delimiter
  @force_quotes = self.class.force_quotes
  @skip_header = self.class.skip_header
  @maximum_rows = self.class.maximum_rows
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveScaffold::Configurable

Instance Attribute Details

#delimiterObject

Returns the value of attribute delimiter.



43
44
45
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb', line 43

def delimiter
  @delimiter
end

#empty_field_textObject

instance-level configuration




41
42
43
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb', line 41

def empty_field_text
  @empty_field_text
end

#force_quotesObject

Returns the value of attribute force_quotes.



45
46
47
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb', line 45

def force_quotes
  @force_quotes
end

#maximum_rowsObject

Returns the value of attribute maximum_rows.



47
48
49
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb', line 47

def maximum_rows
  @maximum_rows
end

#skip_headerObject

Returns the value of attribute skip_header.



49
50
51
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb', line 49

def skip_header
  @skip_header
end