Class: ImportExport::TranslationOverridesExporter
- Inherits:
-
BaseExporter
- Object
- BaseExporter
- ImportExport::TranslationOverridesExporter
- Defined in:
- lib/import_export/translation_overrides_exporter.rb
Constant Summary
Constants inherited from BaseExporter
BaseExporter::CATEGORY_ATTRS, BaseExporter::GROUP_ATTRS, BaseExporter::POST_ATTRS, BaseExporter::TOPIC_ATTRS, BaseExporter::USER_ATTRS
Instance Attribute Summary
Attributes inherited from BaseExporter
Instance Method Summary collapse
- #default_filename_prefix ⇒ Object
-
#initialize ⇒ TranslationOverridesExporter
constructor
A new instance of TranslationOverridesExporter.
- #perform ⇒ Object
Methods inherited from BaseExporter
#categories, #export_categories, #export_categories!, #export_category_groups, #export_category_groups!, #export_group_users, #export_group_users!, #export_groups, #export_groups!, #export_topic_users, #export_topic_users!, #export_topics, #export_topics!, #export_translation_overrides, #export_users, #save_to_file
Constructor Details
#initialize ⇒ TranslationOverridesExporter
Returns a new instance of TranslationOverridesExporter.
5 6 7 |
# File 'lib/import_export/translation_overrides_exporter.rb', line 5 def initialize() @export_data = { translation_overrides: [] } end |
Instance Method Details
#default_filename_prefix ⇒ Object
16 17 18 |
# File 'lib/import_export/translation_overrides_exporter.rb', line 16 def default_filename_prefix "translation-overrides" end |
#perform ⇒ Object
9 10 11 12 13 14 |
# File 'lib/import_export/translation_overrides_exporter.rb', line 9 def perform puts "Exporting all translation overrides...", "" export_translation_overrides self end |