Class: PPC::API::Qihu::Rank
- Inherits:
-
PPC::API::Qihu
- Object
- PPC::API::Qihu
- PPC::API::Qihu::Rank
- Defined in:
- lib/ppc/api/qihu/rank.rb
Constant Summary collapse
- Service =
'tool'
Class Method Summary collapse
Methods inherited from PPC::API::Qihu
make_type, process, request_http_body, request_http_header, request_uri, reverse_type, to_id_list, to_json_string
Methods included from PPC::API
#debug_off, #debug_on, #is_no_quota, #make_type, #process, #request, #request_http_body, #request_http_header, #request_uri, #reverse_type
Class Method Details
.getRank(auth, region, queryInfo) ⇒ Object
16 17 18 19 20 |
# File 'lib/ppc/api/qihu/rank.rb', line 16 def self.getRank( auth, region, queryInfo ) body = {'region'=> region, 'queryInfo' => queryInfo} response = request(auth, Service, 'realTimeQueryResult', body) # process( response, 'sublinkList'){ |x| reverse_type( x['item'] ) } end |