lib/sapos/print/configuration.rb in sapos-print-1.1.0 vs lib/sapos/print/configuration.rb in sapos-print-1.1.1
- old
+ new
@@ -4,11 +4,11 @@
module Sapos
module Print
class Configuration
- attr_accessor :printer, :adapter, :interface, :q, :key, :emv_path, :emv_terminal, :user_id, :verbose, :duplicate_control, :cache, :printers
+ attr_accessor :printer, :adapter, :interface, :q, :key, :emv_path, :emv_terminal, :user_id, :verbose, :duplicate_control, :cache, :printers, :verbose
def self.write(args = {})
config_file = "#{Sapos::Print.app_directory}/config.yml"
File.write(config_file, args.to_yaml)
end
@@ -26,9 +26,10 @@
@key = result[:key]
@emv_path = result[:emv_path]
@emv_terminal = result[:emv_terminal]
@user_id = result[:user_id]
@duplicate_control = result[:duplicate_control]
+ @verbose = result[:verbose]
@cache = []
else
raise Sapos::Print::Error, "Configuration is missing. Make sure to create this file: #{config_file}"
end
end
\ No newline at end of file