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
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
|