Method: Zebra::Zpl::Barcode#to_zpl

Defined in:
lib/zebra/zpl/barcode.rb

#to_zplObject

[View source]

56
57
58
59
60
# File 'lib/zebra/zpl/barcode.rb', line 56

def to_zpl
  check_attributes
  human_readable = print_human_readable_code ? "Y" : "N"
  "^FW#{rotation}^FO#{x},#{y}^BY#{width},#{ratio},#{height}^B#{type}#{rotation},,#{human_readable}^FD#{data}^FS"
end