lib/sapos/print/configuration.rb in sapos-print-1.0.7 vs lib/sapos/print/configuration.rb in sapos-print-1.0.8
- 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
+ attr_accessor :printer, :adapter, :interface, :q, :key, :emv_path, :emv_terminal, :user_id, :verbose
def self.write(args = {})
config_file = "#{Sapos::Print.app_directory}/config.yml"
File.write(config_file, args.to_yaml)
end
@@ -16,10 +16,9 @@
def initialize
config_file = "#{Sapos::Print.app_directory}/config.yml"
if File.exist?(config_file)
template = ERB.new(File.read(config_file))
result = YAML.load(template.result(binding))
- ap result
@printer = result[:printer]
@adapter = result[:adapter]
@interface = result[:interface]
@q = result[:q]
@key = result[:key]
\ No newline at end of file