topsy 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.yardoc/checksums +14 -2
- data/.yardoc/objects/Topsy/Author/to_s_i.dat +0 -0
- data/.yardoc/objects/Topsy/Author/type_i.dat +0 -0
- data/.yardoc/objects/Topsy/Author.dat +0 -0
- data/.yardoc/objects/Topsy/Client/author_info_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/author_search_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/credit_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/get_rate_limit_status_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/handle_response_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/link_post_count_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/link_posts_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/mashup_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/profile_search_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/raise_errors_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/related_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/search_count_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/search_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/stats_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/tags_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/trackbacks_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/trending_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client/url_info_i.dat +0 -0
- data/.yardoc/objects/Topsy/Client.dat +0 -0
- data/.yardoc/objects/Topsy/LinkSearchResult/to_s_i.dat +0 -0
- data/.yardoc/objects/Topsy/LinkSearchResult.dat +0 -0
- data/.yardoc/objects/Topsy/Linkpost/target_3D_i.dat +0 -0
- data/.yardoc/objects/Topsy/Linkpost/to_s_i.dat +0 -0
- data/.yardoc/objects/Topsy/Linkpost.dat +0 -0
- data/.yardoc/objects/Topsy/LinkpostCount/to_s_i.dat +0 -0
- data/.yardoc/objects/Topsy/LinkpostCount.dat +0 -0
- data/.yardoc/objects/Topsy/Page/initialize_i.dat +0 -0
- data/.yardoc/objects/Topsy/Page/list_3D_i.dat +0 -0
- data/.yardoc/objects/Topsy/Page/to_s_i.dat +0 -0
- data/.yardoc/objects/Topsy/Page.dat +0 -0
- data/.yardoc/objects/Topsy/RateLimitInfo/refresh_in_seconds_i.dat +0 -0
- data/.yardoc/objects/Topsy/RateLimitInfo/reset_i.dat +0 -0
- data/.yardoc/objects/Topsy/RateLimitInfo.dat +0 -0
- data/.yardoc/objects/Topsy/SearchCounts/all_time_i.dat +0 -0
- data/.yardoc/objects/Topsy/SearchCounts/hour_i.dat +0 -0
- data/.yardoc/objects/Topsy/SearchCounts/month_i.dat +0 -0
- data/.yardoc/objects/Topsy/SearchCounts/overall_i.dat +0 -0
- data/.yardoc/objects/Topsy/SearchCounts/this_hour_i.dat +0 -0
- data/.yardoc/objects/Topsy/SearchCounts/this_month_i.dat +0 -0
- data/.yardoc/objects/Topsy/SearchCounts/this_week_i.dat +0 -0
- data/.yardoc/objects/Topsy/SearchCounts/today_i.dat +0 -0
- data/.yardoc/objects/Topsy/SearchCounts/week_i.dat +0 -0
- data/.yardoc/objects/Topsy/SearchCounts.dat +0 -0
- data/.yardoc/objects/Topsy/Stats/to_s_i.dat +0 -0
- data/.yardoc/objects/Topsy/Stats.dat +0 -0
- data/.yardoc/objects/Topsy/Tag/to_s_i.dat +0 -0
- data/.yardoc/objects/Topsy/Tag.dat +0 -0
- data/.yardoc/objects/Topsy/Target/to_s_i.dat +0 -0
- data/.yardoc/objects/Topsy/Target.dat +0 -0
- data/.yardoc/objects/Topsy/Trend/to_s_i.dat +0 -0
- data/.yardoc/objects/Topsy/Trend.dat +0 -0
- data/.yardoc/objects/Topsy/Tweet/author_3D_i.dat +0 -0
- data/.yardoc/objects/Topsy/Tweet/target_3D_i.dat +0 -0
- data/.yardoc/objects/Topsy/Tweet/to_s_i.dat +0 -0
- data/.yardoc/objects/Topsy/Tweet.dat +0 -0
- data/.yardoc/objects/Topsy/UrlInfo/to_s_i.dat +0 -0
- data/.yardoc/objects/Topsy/UrlInfo.dat +0 -0
- data/.yardoc/objects/Topsy.dat +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/README.markdown +71 -6
- data/Rakefile +1 -1
- data/TODO +7 -0
- data/VERSION +1 -1
- data/doc/Topsy/Author.html +201 -0
- data/doc/Topsy/Client.html +2096 -0
- data/doc/Topsy/LinkSearchResult.html +152 -0
- data/doc/Topsy/Linkpost.html +209 -0
- data/doc/Topsy/LinkpostCount.html +152 -0
- data/doc/Topsy/Page.html +284 -0
- data/doc/Topsy/RateLimitInfo.html +201 -0
- data/doc/Topsy/SearchCounts.html +91 -0
- data/doc/Topsy/Stats.html +152 -0
- data/doc/Topsy/Tag.html +152 -0
- data/doc/Topsy/Target.html +152 -0
- data/doc/Topsy/Trend.html +152 -0
- data/doc/Topsy/Tweet.html +266 -0
- data/doc/Topsy/UrlInfo.html +152 -0
- data/doc/Topsy.html +112 -0
- data/doc/_index.html +245 -0
- data/doc/class_list.html +177 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +23 -0
- data/doc/css/style.css +263 -0
- data/doc/file.README.html +151 -0
- data/doc/file_list.html +29 -0
- data/doc/index.html +151 -0
- data/doc/js/app.js +91 -0
- data/doc/js/full_list.js +39 -0
- data/doc/js/jquery.js +19 -0
- data/doc/method_list.html +352 -0
- data/doc/top-level-namespace.html +79 -0
- data/lib/topsy/author.rb +23 -0
- data/lib/topsy/client.rb +48 -21
- data/lib/topsy/link_search_result.rb +24 -0
- data/lib/topsy/linkpost.rb +33 -0
- data/lib/topsy/linkpost_count.rb +15 -0
- data/lib/topsy/page.rb +40 -0
- data/lib/topsy/rate_limit_info.rb +18 -0
- data/lib/topsy/search_counts.rb +9 -30
- data/lib/topsy/stats.rb +18 -0
- data/lib/topsy/tag.rb +16 -0
- data/lib/topsy/target.rb +18 -0
- data/lib/topsy/trend.rb +16 -0
- data/lib/topsy/tweet.rb +44 -0
- data/lib/topsy/url_info.rb +21 -0
- data/lib/topsy.rb +36 -4
- data/script/console +10 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/test/fixtures/credit.json +15 -0
- data/test/fixtures/urlinfo.json +2 -2
- data/test/helper.rb +9 -4
- data/test/test_topsy.rb +92 -11
- data/topsy.gemspec +194 -0
- metadata +86 -5
- data/.yardoc/objects/Topsy/SearchCounts/last_hour_i.dat +0 -0
- data/.yardoc/objects/Topsy/SearchCounts/last_month_i.dat +0 -0
- data/.yardoc/objects/Topsy/SearchCounts/last_week_i.dat +0 -0
data/.gitignore
CHANGED
data/.yardoc/checksums
CHANGED
@@ -1,2 +1,14 @@
|
|
1
|
-
lib/topsy/
|
2
|
-
lib/topsy/
|
1
|
+
lib/topsy/stats.rb 05ef28e762c722c8f36b442135be3993baf3ac70
|
2
|
+
lib/topsy/tweet.rb 1e4c3636eed383c6d6e49d8c2d3bf95435996f79
|
3
|
+
lib/topsy/url_info.rb 376a55884265d9ebb82983b91b7fd8ce932295e6
|
4
|
+
lib/topsy/trend.rb 7785325ff539149177c80d2e079d0e896eb2d169
|
5
|
+
lib/topsy/tag.rb 5cb4a51fa515e534153bc657d1bbbf94e52465b1
|
6
|
+
lib/topsy/rate_limit_info.rb 4021ddd156d6b1eb16a1ebcdb2c93febcba2f91a
|
7
|
+
lib/topsy/linkpost_count.rb c867399d0400150cf7762d6cd28c111d2dba74ba
|
8
|
+
lib/topsy/target.rb f8c86f4793c7e9326c76108374d73eeff351478a
|
9
|
+
lib/topsy/search_counts.rb 7160dc24af26870d278a392faf8c9ab2c3938f70
|
10
|
+
lib/topsy/link_search_result.rb 4b16323121503d2c7d999584ec1d8c90554e5100
|
11
|
+
lib/topsy/linkpost.rb 57b39e2fd1905456ba4a2f9db07f662625b7e32d
|
12
|
+
lib/topsy/client.rb 196b9ee3a51b517c9defdea44ff7655a187822cd
|
13
|
+
lib/topsy/author.rb 4ccffe22f3d11d12f929fb893302cf732366ad9f
|
14
|
+
lib/topsy/page.rb a4f3a25ad9d81578f87b41da3307149c931d508b
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/.yardoc/objects/Topsy.dat
CHANGED
Binary file
|
data/.yardoc/objects/root.dat
CHANGED
Binary file
|
data/.yardoc/proxy_types
CHANGED
Binary file
|
data/README.markdown
CHANGED
@@ -1,20 +1,85 @@
|
|
1
1
|
# Topsy
|
2
2
|
|
3
|
-
Simple Ruby wrapper for the Topsy.com Otter API.
|
3
|
+
Simple Ruby wrapper for the [Topsy.com](http://topsy.com) Otter API. Topsy is a search engine powered by tweets.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
+
Topsy is hosted on Gemcutter, so:
|
8
|
+
|
9
|
+
gem install gemcutter # if necessary
|
10
|
+
gem tumble # if necessary
|
7
11
|
sudo gem install topsy
|
8
12
|
|
9
13
|
## Usage
|
14
|
+
>> Topsy.author_info('http://twitter.com/barackobama')
|
15
|
+
=> <#Topsy::Author description="44th President of the United States" influence_level=10 name="Barack Obama" nick="barackobama" topsy_author_url="http://topsy.com/twitter/barackobama" type="twitter" url="http://twitter.com/barackobama">
|
16
|
+
|
17
|
+
>> Topsy.author_search('programming')
|
18
|
+
=> <#Topsy::Page list=[<#Topsy::Author descript ... ] page=1 perpage=15 topsy_trackback_url=nil total=97229 window=nil>
|
19
|
+
|
20
|
+
>> Topsy.author_search('programming', :perpage => 2, :page => 1)
|
21
|
+
=> <#Topsy::Page list=[<#Topsy::Author description="Most ... ] page=1 perpage=2 topsy_trackback_url=nil total=100685 window=nil>
|
22
|
+
|
23
|
+
>> Topsy.link_posts('http://twitter.com/barackobama', :perpage => 2, :page => 2)
|
24
|
+
=> <#Topsy::Page list=[<#Topsy::Linkpost content="An important reminder ... ] page=2 perpage=2 topsy_trackback_url=nil total=402 window=nil>
|
25
|
+
|
26
|
+
>> Topsy.link_posts('http://twitter.com/barackobama')
|
27
|
+
=> <#Topsy::Page list=[<#Topsy::Linkpost content="An important reminder about health reform on the @Whit... ] page=1 perpage=10 topsy_trackback_url=nil total=402 window=nil>
|
28
|
+
|
29
|
+
>> Topsy.link_post_count('http://twitter.com/barackobama')
|
30
|
+
=> <#Topsy::LinkpostCount all=402 contains=0>
|
31
|
+
|
32
|
+
>> Topsy.url_info('http://etagwerker.com')
|
33
|
+
=> <#Topsy::UrlInfo description="" description_attribution="" oneforty="just finished installing wordpress in a linux .." url="http://etagwerker.com/">
|
34
|
+
|
35
|
+
>> Topsy.stats('http://www.google.com')
|
36
|
+
=> <#Topsy::Stats all=29869 contains=0 influential=2023 topsy_trackback_url="http://topsy.com/tb/www.google.com/">
|
37
|
+
|
38
|
+
>> Topsy.search('rock')
|
39
|
+
=> <#Topsy::Page list=[<#Topsy::LinkSearchResult content="Why 30 Rock is a Rip-Off of The Muppet Show - http://is.gd/15KJZ" .. ] page=1 perpage=10 topsy_trackback_url=nil total=714429 window="a">
|
40
|
+
|
41
|
+
>> Topsy.search('rock', :perpage => 2, :page => 3)
|
42
|
+
=> <#Topsy::Page list=[<#Topsy::LinkSearchResult content="Just released! Beatles Rock Band opening cinematic. Amaz ..." ] page=3 perpage=2 topsy_trackback_url=nil total=714429 window="a">
|
43
|
+
|
44
|
+
>> Topsy.search('rock', :perpage => 2, :page => 3, :window => 'd')
|
45
|
+
=> <#Topsy::Page list=[<#Topsy::LinkSearchResult content="Be a Google Wave Rock Star http://ff.im/-dPdGL" highlight="Be a .. "] page=3 perpage=2 topsy_trackback_url=nil total=6064 window="d">
|
46
|
+
|
47
|
+
>> Topsy.search_count('rock')
|
48
|
+
=> <#Topsy::SearchCounts a=5191790 d=7601 h=206 m=216179 w=45462>
|
49
|
+
|
50
|
+
>> Topsy.profile_search('Hacker+Rubyist')
|
51
|
+
=> <#Topsy::Page list=[<#Topsy::Author description="Hacker; Rubyist; Bit Poet" influence_level=4 name="Ben Bleythi ...">] page=1 perpage=10 topsy_trackback_url=nil total=5 window=nil>
|
52
|
+
|
53
|
+
>> Topsy.profile_search('Hacker+Rubyist', :perpage => 1, :page => 2)
|
54
|
+
=> <#Topsy::Page list=[<#Topsy::Author description="Rubyist, hacker, gamer (video, board and role-playing)... ">] page=2 perpage=1 topsy_trackback_url=nil total=5 window=nil>
|
55
|
+
|
56
|
+
>> Topsy.related('http://www.twitter.com')
|
57
|
+
=> <#Topsy::Page list=[<#Topsy::LinkSearchResult title="New Twitter Feature: Body Counts | Danger Room ... ">] page=1 perpage=10 topsy_trackback_url=nil total=4458 window=nil>
|
58
|
+
|
59
|
+
>> Topsy.tags('http://twitter.com')
|
60
|
+
=> <#Topsy::Page list=[<#Topsy::Tag name="current" url="http://topsy.com/s?q=current">, <#Topsy::Tag name="twe ... ">] page=1 perpage=10 topsy_trackback_url=nil total=1885 window=nil>
|
61
|
+
|
62
|
+
>> Topsy.trending
|
63
|
+
=> <#Topsy::Page list=[<#Topsy::Trend term="u s reopens embassy in yemen" url="http://topsy.com/s?q=u+s%20r ... ">] page=1 perpage=10 topsy_trackback_url=nil total=1434 window=nil>
|
64
|
+
|
65
|
+
>> Topsy.trending(:page => 3, :perpage => 2)
|
66
|
+
=> <#Topsy::Page list=[<#Topsy::Trend term="droid vs iphone" url="http://topsy.com/s?q=droid+vs%20iphone" ... ">] page=3 perpage=2 topsy_trackback_url=nil total=1434 window=nil>
|
10
67
|
|
68
|
+
>> Topsy.trackbacks('http://twitter.com', :perpage => 2, :page => 2)
|
69
|
+
=> <#Topsy::Page list=[<#Topsy::Tweet author=<#Topsy::Author influence_level=8 name="tama" photo_url="http://a3.twimg .. ">] page=2 perpage=2 topsy_trackback_url="http://topsy.com/tb/twitter.com/" total=39705 window=nil>
|
70
|
+
|
71
|
+
>> Topsy.trackbacks('http://twitter.com', :perpage => 2, :page => 2, :contains => 'mashable')
|
72
|
+
=> <#Topsy::Page list=[<#Topsy::Tweet author=<#Topsy::Author name="Hannah Grosvenor" photo_url="http://a1.t. ... >] page=2 perpage=2 topsy_trackback_url="http://topsy.com/tb/twitter.com/" total=41 window=nil>
|
73
|
+
|
11
74
|
# Fetch search results for the query "gemcutter"
|
12
|
-
results = Topsy.search("gemcutter")
|
75
|
+
>> results = Topsy.search("gemcutter")
|
76
|
+
=> <#Topsy::Page list=[<#Topsy::LinkSearchResult content="New design ... ]>
|
13
77
|
|
14
78
|
# Fetch search counts for the query "gemcutter"
|
15
|
-
counts = Topsy.search_count("gemcutter")
|
16
|
-
|
17
|
-
|
79
|
+
>> counts = Topsy.search_count("gemcutter")
|
80
|
+
=> <#Topsy::SearchCounts a=773 d=6 h=0 m=103 w=24>
|
81
|
+
>> counts.this_week
|
82
|
+
=> 24
|
18
83
|
|
19
84
|
Check the [full gem documentation](http://yardoc.org/docs/pengwynn-topsy) and [API docs](http://code.google.com/p/otterapi/wiki/Resources) for more info.
|
20
85
|
|
@@ -31,4 +96,4 @@ Check the [full gem documentation](http://yardoc.org/docs/pengwynn-topsy) and [A
|
|
31
96
|
|
32
97
|
## Copyright
|
33
98
|
|
34
|
-
Copyright (c) 2010 Wynn Netherland. See LICENSE for details.
|
99
|
+
Copyright (c) 2010 [Wynn Netherland](http://wynnnetherland.com). See LICENSE for details.
|
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ begin
|
|
9
9
|
gem.description = %Q{Ruby wrapper for the Topsy otterapi}
|
10
10
|
gem.email = "wynn.netherland@gmail.com"
|
11
11
|
gem.homepage = "http://github.com/pengwynn/topsy"
|
12
|
-
gem.authors = ["Wynn Netherland"]
|
12
|
+
gem.authors = ["Wynn Netherland", "Ernesto Tagwerker"]
|
13
13
|
|
14
14
|
gem.add_dependency('hashie', '~> 0.1.3')
|
15
15
|
gem.add_dependency('httparty', '~> 0.4.5')
|
data/TODO
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -0,0 +1,201 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<title>Class: Topsy::Author</title>
|
7
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '..';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<div id="header">
|
20
|
+
<div id="menu">
|
21
|
+
|
22
|
+
<a href="../_index.html">Index (A)</a> »
|
23
|
+
<a href="../Topsy.html" title="Topsy">Topsy</a>
|
24
|
+
»
|
25
|
+
<span class="title">Author</span>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div id="search">
|
30
|
+
<a id="class_list_link" href="#">Namespace List</a>
|
31
|
+
<a id="method_list_link" href="#">Method List</a>
|
32
|
+
<a id ="file_list_link" href="#">File List</a>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="clear"></div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<iframe id="search_frame"></iframe>
|
39
|
+
|
40
|
+
<div id="content"><h1>Class: Topsy::Author
|
41
|
+
|
42
|
+
|
43
|
+
</h1>
|
44
|
+
|
45
|
+
<dl class="box">
|
46
|
+
|
47
|
+
<dt class="r1">Inherits:</dt>
|
48
|
+
<dd class="r1">
|
49
|
+
<span class="inheritName">Hashie::Mash</span>
|
50
|
+
|
51
|
+
<ul class="fullTree">
|
52
|
+
<li>Object</li>
|
53
|
+
|
54
|
+
<li class="next">Hashie::Mash</li>
|
55
|
+
|
56
|
+
<li class="next">Topsy::Author</li>
|
57
|
+
|
58
|
+
</ul>
|
59
|
+
<a href="#" class="inheritanceTree">show all</a>
|
60
|
+
|
61
|
+
</dd>
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<dt class="r2 last">Defined in:</dt>
|
71
|
+
<dd class="r2 last">lib/topsy/author.rb</dd>
|
72
|
+
|
73
|
+
</dl>
|
74
|
+
<div class="clear"></div>
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<h2>Instance Method Summary</h2>
|
81
|
+
|
82
|
+
<ul class="summary">
|
83
|
+
|
84
|
+
<li class="public ">
|
85
|
+
<span class="summary_signature">
|
86
|
+
|
87
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
</span>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<span class="summary_desc"></span>
|
100
|
+
|
101
|
+
</li>
|
102
|
+
|
103
|
+
|
104
|
+
<li class="public ">
|
105
|
+
<span class="summary_signature">
|
106
|
+
|
107
|
+
<a href="#type-instance_method" title="#type (instance method)">- (Object) <strong>type</strong> </a>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
</span>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<span class="summary_desc"></span>
|
120
|
+
|
121
|
+
</li>
|
122
|
+
|
123
|
+
|
124
|
+
</ul>
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
<div id="instance_method_details" class="method_details_list">
|
129
|
+
<h2>Instance Method Details</h2>
|
130
|
+
|
131
|
+
|
132
|
+
<div class="method_details first">
|
133
|
+
<p class="signature first" id="to_s-instance_method">
|
134
|
+
|
135
|
+
- (<tt>Object</tt>) <strong>to_s</strong>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
</p><table class="source_code">
|
140
|
+
<tr>
|
141
|
+
<td>
|
142
|
+
<pre class="lines">
|
143
|
+
|
144
|
+
|
145
|
+
15
|
146
|
+
16
|
147
|
+
17</pre>
|
148
|
+
</td>
|
149
|
+
<td>
|
150
|
+
<pre class="code"><span class="info file"># File 'lib/topsy/author.rb', line 15</span>
|
151
|
+
|
152
|
+
<span class='def def kw'>def</span> <span class='to_s identifier id'>to_s</span>
|
153
|
+
<span class='dstring node'>"Topsy Author: #{name}, @#{nick}, #{topsy_author_url}"</span>
|
154
|
+
<span class='end end kw'>end</span>
|
155
|
+
</pre>
|
156
|
+
</td>
|
157
|
+
</tr>
|
158
|
+
</table>
|
159
|
+
</div>
|
160
|
+
|
161
|
+
<div class="method_details ">
|
162
|
+
<p class="signature " id="type-instance_method">
|
163
|
+
|
164
|
+
- (<tt>Object</tt>) <strong>type</strong>
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
</p><table class="source_code">
|
169
|
+
<tr>
|
170
|
+
<td>
|
171
|
+
<pre class="lines">
|
172
|
+
|
173
|
+
|
174
|
+
19
|
175
|
+
20
|
176
|
+
21</pre>
|
177
|
+
</td>
|
178
|
+
<td>
|
179
|
+
<pre class="code"><span class="info file"># File 'lib/topsy/author.rb', line 19</span>
|
180
|
+
|
181
|
+
<span class='def def kw'>def</span> <span class='type identifier id'>type</span>
|
182
|
+
<span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='symbol val'>:type</span><span class='rbrack token'>]</span>
|
183
|
+
<span class='end end kw'>end</span>
|
184
|
+
</pre>
|
185
|
+
</td>
|
186
|
+
</tr>
|
187
|
+
</table>
|
188
|
+
</div>
|
189
|
+
|
190
|
+
</div>
|
191
|
+
|
192
|
+
</div>
|
193
|
+
|
194
|
+
<div id="footer">
|
195
|
+
Generated on Wed Jan 6 10:31:55 2010 by
|
196
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
197
|
+
0.5.2 (ruby-1.8.6).
|
198
|
+
</div>
|
199
|
+
|
200
|
+
</body>
|
201
|
+
</html>
|