Sha256: 36f9c0c95a2f40d3613a69a1d439bcff1ef383253498e5fd54bb41d87c2aa83a

Contents?: true

Size: 493 Bytes

Versions: 12

Compression:

Stored size: 493 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'USPS-intelligent-barcode'

barcode_id = '01'
service_type = '234'
mailer_id = '567094'
serial_number = '987654321'
routing_code = '01234567891'
barcode = Imb::Barcode.new(barcode_id,
                           service_type,
                           mailer_id,
                           serial_number,
                           routing_code)
p barcode.barcode_letters
# => "AADTFFDFTDADTAADAATFDTDDAAADDTDTTDAFADADDDTFFFDDTTTADFAAADFTDAADA"

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
USPS-intelligent-barcode-0.2.7 examples/example.rb
USPS-intelligent-barcode-0.2.6 examples/example.rb
usps_intelligent_barcode-0.3.0 examples/example.rb
USPS-intelligent-barcode-0.2.5 examples/example.rb
USPS-intelligent-barcode-0.2.4 examples/example.rb
USPS-intelligent-barcode-0.2.3 examples/example.rb
USPS-intelligent-barcode-0.2.2 examples/example.rb
USPS-intelligent-barcode-0.2.1 examples/example.rb
USPS-intelligent-barcode-0.2.0 examples/example.rb
USPS-intelligent-barcode-0.1.2 examples/example.rb
USPS-intelligent-barcode-0.1.1 examples/example.rb
USPS-intelligent-barcode-0.1.0 examples/example.rb