Sha256: d4169de4d8f394c85397fe313333d76e4e2ade39d6f97631f249db5c0a89a2fa

Contents?: true

Size: 411 Bytes

Versions: 9

Compression:

Stored size: 411 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mundipagg_sdk-1.0.2 lib/gateway/Parsers/trailer_parser.rb
mundipagg_sdk-1.0.1 lib/gateway/Parsers/trailer_parser.rb
mundipagg_sdk-1.0.0 lib/gateway/Parsers/trailer_parser.rb
mundipagg_api-1.3.1 lib/mundipagg/Parsers/trailer_parser.rb
mundipagg_api-1.3.0 lib/mundipagg/Parsers/trailer_parser.rb
mundipagg_api-1.1.1 lib/mundipagg/Parsers/trailer_parser.rb
mundipagg_api-1.1.0 lib/mundipagg/Parsers/trailer_parser.rb
mundipagg_api-1.0.1 lib/mundipagg/Parsers/trailer_parser.rb
mundipagg_api-1.0.0 lib/mundipagg/Parsers/trailer_parser.rb