Sha256: 0e23d44cbe249df2d2225ad8c6ed8ef78ec754eb1ef4db28a3ee7c40ccfeeda5

Contents?: true

Size: 397 Bytes

Versions: 4

Compression:

Stored size: 397 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

4 entries across 4 versions & 2 rubygems

Version Path
stone_ecommerce-1.0.3 lib/gateway/Parsers/trailer_parser.rb
mundipagg_sdk-1.0.3 lib/gateway/Parsers/trailer_parser.rb
stone_ecommerce-1.0.2 lib/gateway/Parsers/trailer_parser.rb
stone_ecommerce-1.0.0 lib/gateway/Parsers/trailer_parser.rb