Class: ActiveScaffold::Config::ExportTool
- Defined in:
- lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/export_tool.rb
Constant Summary collapse
- @@link =
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
-
#delimiter ⇒ Object
Returns the value of attribute delimiter.
-
#empty_field_text ⇒ Object
instance-level configuration —————————-.
-
#force_quotes ⇒ Object
Returns the value of attribute force_quotes.
-
#maximum_rows ⇒ Object
Returns the value of attribute maximum_rows.
-
#skip_header ⇒ Object
Returns the value of attribute skip_header.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(core_config) ⇒ ExportTool
constructor
A new instance of ExportTool.
Methods inherited from Base
#crud_type, #formats, #formats=, inherited
Methods included from ActiveScaffold::Configurable
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
#delimiter ⇒ Object
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_text ⇒ Object
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_quotes ⇒ Object
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_rows ⇒ Object
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_header ⇒ Object
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 |