lib/ppc.rb in ppc-1.0.3 vs lib/ppc.rb in ppc-1.0.6
- old
+ new
@@ -1,8 +1,20 @@
require 'ppc/baidu'
+require 'ppc/sogou'
module PPC
- VERSION = "1.0.2"
+ VERSION = "1.0.6"
attr_reader :header,:body,:rquota,:quota,:status,:desc,:oprs,:oprtime,:code,:message
attr_accessor :username,:password,:token,:debug
def initialize(params = {})
end
-end
\ No newline at end of file
+
+ protected
+ def print_debug(var,varname=nil)
+ puts '=' * 10 + varname.to_s + '=' * 10
+ if var.is_a? String
+ puts var
+ else
+ ap var
+ end
+ puts '=' * 10 + varname.to_s + '=' * 10
+ end
+end