require 'ppc/baidu' require 'ppc/sogou' module PPC 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 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