Sha256: 88f71445a53c2246d0edcb13b92e262f90f7b0528ff61c8503b1d8750153b30e
Contents?: true
Size: 458 Bytes
Versions: 5
Compression:
Stored size: 458 Bytes
Contents
module Gateway class TrailerParser def Parse(elements) if elements.length < 5 throw('The expected parameter count is 5') end trailer = Trailer.new trailer.OrderDataCount = elements[1] trailer.CreditCardTransactionDataCount = elements[2] trailer.BoletoTransactionDataCount = elements[3] trailer.OnlineDebitTransactionDataCount = elements[4].chomp return trailer end end end
Version data entries
5 entries across 5 versions & 2 rubygems