lib/alipay.rb in alipay-0.5.0 vs lib/alipay.rb in alipay-0.6.0.beta1

- old
+ new

@@ -1,19 +1,22 @@ +require 'net/http' require 'alipay/version' require 'alipay/utils' require 'alipay/sign' +require 'alipay/sign/wap' require 'alipay/service' require 'alipay/service/wap' require 'alipay/notify' +require 'alipay/notify/wap' module Alipay + @debug_mode = true + @sign_type = 'MD5' + class << self - attr_accessor :pid - attr_accessor :key - attr_accessor :seller_email - attr_writer :debug_mode + attr_accessor :pid, :key, :seller_email, :sign_type, :debug_mode def debug_mode? - @debug_mode.nil? ? true : !!@debug_mode + !!@debug_mode end end end