lib/sapos/print/printer.rb in sapos-print-1.1.1 vs lib/sapos/print/printer.rb in sapos-print-1.1.2
- old
+ new
@@ -1,12 +1,17 @@
module Sapos
module Print
class Printer
attr_accessor :config
+ attr_accessor :name
def initialize(config)
@config = config
+ end
+
+ def to_h
+ {config: config.printer}
end
def print(args = {})
raw_message = args[:document]
\ No newline at end of file