class ZplScaler::ZplCommand
Data class that holds the name & params of a ZPL command.
Attributes
name[RW]
params[RW]
Public Class Methods
new(name, params)
click to toggle source
# File lib/zpl-scaler.rb, line 14 def initialize(name, params) @name = name @params = params end
Public Instance Methods
to_zpl_string()
click to toggle source
Converts the command to a ZPL string.
# File lib/zpl-scaler.rb, line 20 def to_zpl_string "^#{ @name }#{ @params.join(',') }" end