Class: Bambora::Builders::BatchPaymentCSV
- Inherits:
-
Object
- Object
- Bambora::Builders::BatchPaymentCSV
- Defined in:
- lib/bambora/builders/batch_payment_csv.rb
Class Method Summary collapse
-
.build(transactions) ⇒ String
Return a CSV with one transaction per row.
Class Method Details
.build(transactions) ⇒ String
Return a CSV with one transaction per row.
31 32 33 34 35 36 37 |
# File 'lib/bambora/builders/batch_payment_csv.rb', line 31 def build(transactions) CSV.generate(row_sep: "\r\n") do |csv| transactions.each do |transaction| csv << transaction.values end end end |