class LSVplus::RecordFormatter
Attributes
file[R]
output[R]
record[R]
Public Class Methods
call(file, record, index)
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 7 def self.call(file, record, index) new(file, record, index).call end
new(file, record, index)
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 11 def initialize(file, record, index) @file = file @record = record @index = index @output = StringIO.new end
Public Instance Methods
amount()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 74 def amount LSVplus::FormattingHelper.amount record.amount end
call()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 18 def call [ type, version, processing_type, processing_date, debitor_bank_clearing_number, creation_date, creditor_bank_clearing_number, creator_identification, record_number, lsv_identification, currency, amount, creditor_iban, creditor_address, debitor_account, debitor_address, message, reference_type, reference, esr_member_id ].join('') end
creation_date()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 50 def creation_date LSVplus::FormattingHelper.date file.creation_date end
creator_identification()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 58 def creator_identification file.creator_identification end
creditor_address()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 82 def creditor_address LSVplus::FormattingHelper.multiline record.creditor_address end
creditor_bank_clearing_number()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 46 def creditor_bank_clearing_number LSVplus::FormattingHelper.clearing_number record.creditor_bank_clearing_number end
creditor_iban()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 78 def creditor_iban LSVplus::FormattingHelper.account record.creditor_iban end
currency()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 70 def currency file.currency end
debitor_account()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 86 def debitor_account LSVplus::FormattingHelper.account record.debitor_account end
debitor_address()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 90 def debitor_address LSVplus::FormattingHelper.multiline record.debitor_address end
debitor_bank_clearing_number()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 54 def debitor_bank_clearing_number LSVplus::FormattingHelper.clearing_number record.debitor_bank_clearing_number end
esr_member_id()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 106 def esr_member_id format '%-9s', record.esr_member_id end
lsv_identification()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 66 def lsv_identification file.lsv_identification end
message()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 94 def message LSVplus::FormattingHelper.multiline record.message end
processing_date()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 42 def processing_date LSVplus::FormattingHelper.date record.processing_date end
processing_type()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 38 def processing_type file.processing_type end
record_number()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 62 def record_number LSVplus::FormattingHelper.index @index end
reference()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 102 def reference format '%-27s', record.reference end
reference_type()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 98 def reference_type record.reference_type end
type()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 30 def type record.type end
version()
click to toggle source
# File lib/lsv_plus/record_formatter.rb, line 34 def version record.version end