class BaiduApis::Helper
Public Class Methods
iplookup()
click to toggle source
# File lib/baidu_apis/helper.rb, line 29 def iplookup { method: "get", url: "apistore/iplookupservice/iplookup", param_key: "ip" } end
meinv()
click to toggle source
# File lib/baidu_apis/helper.rb, line 37 def meinv { method: "get", url: "txapi/mvtp/meinv", param_key: "num" } end
phone()
click to toggle source
# File lib/baidu_apis/helper.rb, line 20 def phone { method: "get", url: "apistore/mobilenumber/mobilenumber", param_key: "phone" } end
register_helper(name, config)
click to toggle source
# File lib/baidu_apis/helper.rb, line 45 def register_helper(name, config) send :define_singleton_method, name do config end end
stock()
click to toggle source
# File lib/baidu_apis/helper.rb, line 4 def stock { method: "get", url: "apistore/stockservice/stock" } end
weather()
click to toggle source
# File lib/baidu_apis/helper.rb, line 11 def weather { method: "get", url: "apistore/weatherservice/cityname", param_key: "cityname" } end