Class: Popularity::Twitter
Instance Attribute Summary
Attributes inherited from Crawler
#url
Instance Method Summary
collapse
Methods inherited from Crawler
#async_done?, #fetch, #fetch_async, #has_response?, #host, #initialize, #name, #response, #response_json, #to_json, #valid?
Instance Method Details
#as_json(options = {}) ⇒ Object
11
12
13
|
# File 'lib/popularity/networks/twitter.rb', line 11
def as_json(options = {})
{"tweets" => }
end
|
#total ⇒ Object
7
8
9
|
# File 'lib/popularity/networks/twitter.rb', line 7
def total
end
|
3
4
5
|
# File 'lib/popularity/networks/twitter.rb', line 3
def
response_json['count'].to_i if has_response?
end
|