Class: Iterable::CsvExporter

Inherits:
Export show all
Defined in:
lib/iterable/csv_exporter.rb

Overview

Subclass of [Iterable::Export] for CSV exporting of data

Examples:

Creating a CSV Exporter

# With default config
exporter = Iterable::CsvExporter.new Iterable::Export::EMAIL_SEND_TYPE
exporter.export

# With custom config
conf = Iterable::Config.new(token: 'new-token')
exporter = Iterable::CsvExporter.new(Iterable::Export::EMAIL_SEND_TYPE, nil, nil, nil, config)

Constant Summary

Constants inherited from Export

Export::DATA_TYPES, Export::DATE_FORMAT, Export::RANGES

Instance Attribute Summary

Attributes inherited from Export

#campaign_id, #data_type, #omit_fields, #only_fields

Attributes inherited from ApiResource

#conf

Instance Method Summary collapse

Methods inherited from Export

#export, #export_range, #initialize

Methods inherited from ApiResource

#default_config, default_config, #initialize

Constructor Details

This class inherits a constructor from Iterable::Export

Instance Method Details

#formatObject



15
16
17
# File 'lib/iterable/csv_exporter.rb', line 15

def format
  'csv'
end