lib/alipay.rb in alipay-0.4.1 vs lib/alipay.rb in alipay-0.5.0

- old
+ new

@@ -8,7 +8,12 @@ module Alipay class << self attr_accessor :pid attr_accessor :key attr_accessor :seller_email + attr_writer :debug_mode + + def debug_mode? + @debug_mode.nil? ? true : !!@debug_mode + end end end