Module: Topsy
- Extended by:
- Configurable
- Defined in:
- lib/topsy/tag.rb,
lib/topsy.rb,
lib/topsy/page.rb,
lib/topsy/stats.rb,
lib/topsy/trend.rb,
lib/topsy/tweet.rb,
lib/topsy/author.rb,
lib/topsy/client.rb,
lib/topsy/errors.rb,
lib/topsy/target.rb,
lib/topsy/default.rb,
lib/topsy/version.rb,
lib/topsy/linkpost.rb,
lib/topsy/url_info.rb,
lib/topsy/configurable.rb,
lib/topsy/search_counts.rb,
lib/topsy/linkpost_count.rb,
lib/topsy/rate_limit_info.rb,
lib/topsy/search_histogram.rb,
lib/topsy/link_search_result.rb
Overview
This is the link_search_result class for the topsy library. A LinkSearchResult has the following attributes:
"trackback_permalink" : "http://twitter.com/ewerickson/status/3562164195",
"hits" : 38,
"trackback_total" : 157,
"topsy_trackback_url" : "http://topsy.com/tb/www.redstate.com/erick/2009/08/26/breaking-rumors-surface-that-leon-panetta-is-resigning/",
"url" : "http://www.redstate.com/erick/2009/08/26/breaking-rumors-surface-that-leon-panetta-is-resigning/",
"content" : "Panetta is rumored to have sent a resignation letter to Barack Obama today: http://bit.ly/CDMg9",
"title" : "BREAKING: Rumors Surface That Leon Panetta is Resigning - Erickâs blog - RedState",
"score" : 0.75521481,
"highlight" : "Panetta is rumored to have sent a resignation letter to
<span class=\"highlight-term\">Barack</span> <span class=\"highlight-term\">Obama</span> today: http://bit.ly/CDMg9"
According to the official Topsy doc: code.google.com/p/otterapi/wiki/Resources?tm=6#/search
Defined Under Namespace
Modules: Configurable, Default
Classes: Author, Client, General, InformTopsy, LinkSearchResult, Linkpost, LinkpostCount, NotFound, Page, RateLimitExceeded, RateLimitInfo, SearchCounts, SearchHistogram, Stats, Tag, Target, TopsyError, Trend, Tweet, Unauthorized, Unavailable, UrlInfo
Constant Summary
collapse
- VERSION =
'1.0.1'
Instance Attribute Summary
Attributes included from Configurable
#api_key
Class Method Summary
collapse
Instance Method Summary
collapse
cache_key, configure, keys, reset!
Class Method Details
.client ⇒ Object
14
15
16
17
|
# File 'lib/topsy.rb', line 14
def client
@client = Topsy::Client.new(options) unless defined?(@client)
@client
end
|
.rate_limit ⇒ Object
19
20
21
22
|
# File 'lib/topsy.rb', line 19
def rate_limit
self.credit if @rate_limit_info.nil?
@rate_limit_info
end
|
.rate_limit=(info) ⇒ Object
24
25
26
|
# File 'lib/topsy.rb', line 24
def rate_limit=(info)
@rate_limit_info = Topsy::RateLimitInfo.new(info)
end
|
Instance Method Details
#respond_to?(method_name, include_private = false) ⇒ Boolean
29
|
# File 'lib/topsy.rb', line 29
def respond_to?(method_name, include_private=false); client.respond_to?(method_name, include_private) || super; end
|
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
28
|
# File 'lib/topsy.rb', line 28
def respond_to_missing?(method_name , include_private=false); client.respond_to?(method_name, include_private); end
|