module Zebra::Zpl::BarcodeType
Constants
- CODABAR
- CODE_128_AUTO
- CODE_39
- CODE_93
- CODE_AZTEC
- CODE_AZTEC_PARAMS
- CODE_EAN13
- CODE_QR
- CODE_UPCA
- CODE_UPCE
- CODE_UPS_MAXICODE
Public Class Methods
valid_barcode_type?(type)
click to toggle source
Legacy (EPL) bar code suffixes CODE_39
= “3” CODE_39_CHECK_DIGIT = “3C” CODE_93
= “9” CODE_128_AUTO
= “1” CODE_128_A = “1A” CODE_128_B = “1B” CODE_128_C = “1C” CODABAR
= “K”
# File lib/zebra/zpl/barcode_type.rb, line 28 def self.valid_barcode_type?(type) %w(3 A C K 0 O D Q U 9 E).include? type end
validate_barcode_type(type)
click to toggle source
# File lib/zebra/zpl/barcode_type.rb, line 32 def self.validate_barcode_type(type) raise InvalidBarcodeTypeError unless valid_barcode_type?(type) end