Class: Restforce::Bulk::Builder::ZipCsv
- Defined in:
- lib/restforce/bulk/builder/zip_csv.rb
Instance Attribute Summary
Attributes inherited from Csv
Instance Method Summary collapse
Methods inherited from Csv
#generate, #initialize, #query
Constructor Details
This class inherits a constructor from Restforce::Bulk::Builder::Csv
Instance Method Details
#create_request_txt(data) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/restforce/bulk/builder/zip_csv.rb', line 10 def create_request_txt(data) ::CSV.generate do |csv| csv << %w{Name ParentId Body} data.each do |item| csv << [item[:filename], item[:parent_id], "##{item[:filename]}"] end end end |