safubot 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/.yardoc/checksums +9 -0
  2. data/.yardoc/objects/root.dat +0 -0
  3. data/.yardoc/proxy_types +0 -0
  4. data/README.md +52 -1
  5. data/doc/Safubot/Bot.html +1287 -652
  6. data/doc/Safubot/Evented.html +409 -276
  7. data/doc/Safubot/KnownUser.html +476 -254
  8. data/doc/Safubot/Log.html +184 -192
  9. data/doc/Safubot/Query.html +131 -164
  10. data/doc/Safubot/Request.html +158 -147
  11. data/doc/Safubot/Response.html +92 -135
  12. data/doc/Safubot/Test.html +166 -187
  13. data/doc/Safubot/Twitter/Bot.html +1005 -455
  14. data/doc/Safubot/Twitter/DirectMessage.html +417 -238
  15. data/doc/Safubot/Twitter/Tweet.html +725 -398
  16. data/doc/Safubot/Twitter.html +69 -116
  17. data/doc/Safubot/XMPP/Bot.html +625 -303
  18. data/doc/Safubot/XMPP/Message.html +372 -217
  19. data/doc/Safubot/XMPP.html +69 -116
  20. data/doc/Safubot.html +155 -126
  21. data/doc/_index.html +294 -0
  22. data/doc/class_list.html +47 -0
  23. data/doc/css/common.css +1 -0
  24. data/doc/css/full_list.css +55 -0
  25. data/doc/css/style.css +322 -0
  26. data/doc/file.README.html +140 -0
  27. data/doc/file_list.html +49 -0
  28. data/doc/frames.html +13 -0
  29. data/doc/index.html +129 -101
  30. data/doc/js/app.js +205 -0
  31. data/doc/js/full_list.js +167 -0
  32. data/doc/js/jquery.js +3 -5
  33. data/doc/method_list.html +638 -0
  34. data/doc/top-level-namespace.html +103 -0
  35. data/lib/safubot/bot.rb +22 -20
  36. data/lib/safubot/known_user.rb +2 -0
  37. data/lib/safubot/twitter.rb +30 -26
  38. data/lib/safubot/version.rb +1 -1
  39. data/lib/safubot/xmpp.rb +20 -14
  40. data/safubot.gemspec +1 -0
  41. metadata +50 -71
  42. data/doc/Gemfile.html +0 -119
  43. data/doc/Object.html +0 -171
  44. data/doc/Rakefile.html +0 -117
  45. data/doc/created.rid +0 -14
  46. data/doc/foo_rb.html +0 -115
  47. data/doc/images/add.png +0 -0
  48. data/doc/images/brick.png +0 -0
  49. data/doc/images/brick_link.png +0 -0
  50. data/doc/images/bug.png +0 -0
  51. data/doc/images/bullet_black.png +0 -0
  52. data/doc/images/bullet_toggle_minus.png +0 -0
  53. data/doc/images/bullet_toggle_plus.png +0 -0
  54. data/doc/images/date.png +0 -0
  55. data/doc/images/delete.png +0 -0
  56. data/doc/images/find.png +0 -0
  57. data/doc/images/loadingAnimation.gif +0 -0
  58. data/doc/images/macFFBgHack.png +0 -0
  59. data/doc/images/package.png +0 -0
  60. data/doc/images/page_green.png +0 -0
  61. data/doc/images/page_white_text.png +0 -0
  62. data/doc/images/page_white_width.png +0 -0
  63. data/doc/images/plugin.png +0 -0
  64. data/doc/images/ruby.png +0 -0
  65. data/doc/images/tag_blue.png +0 -0
  66. data/doc/images/tag_green.png +0 -0
  67. data/doc/images/transparent.png +0 -0
  68. data/doc/images/wrench.png +0 -0
  69. data/doc/images/wrench_orange.png +0 -0
  70. data/doc/images/zoom.png +0 -0
  71. data/doc/js/darkfish.js +0 -153
  72. data/doc/js/navigation.js +0 -142
  73. data/doc/js/search.js +0 -94
  74. data/doc/js/search_index.js +0 -1
  75. data/doc/js/searcher.js +0 -228
  76. data/doc/lib/safubot/bot_rb.html +0 -115
  77. data/doc/lib/safubot/evented_rb.html +0 -115
  78. data/doc/lib/safubot/known_user_rb.html +0 -115
  79. data/doc/lib/safubot/log_rb.html +0 -115
  80. data/doc/lib/safubot/safubot_rb.html +0 -115
  81. data/doc/lib/safubot/spec/bot_spec_rb.html +0 -115
  82. data/doc/lib/safubot/spec/twitter_spec_rb.html +0 -137
  83. data/doc/lib/safubot/test_helper_rb.html +0 -115
  84. data/doc/lib/safubot/twitter_rb.html +0 -115
  85. data/doc/lib/safubot/version_rb.html +0 -115
  86. data/doc/lib/safubot/xmpp_rb.html +0 -115
  87. data/doc/lib/safubot_rb.html +0 -115
  88. data/doc/rdoc.css +0 -543
  89. data/doc/table_of_contents.html +0 -224
@@ -1,522 +1,849 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Safubot::Twitter::Tweet
8
+
9
+ &mdash; Documentation by YARD 0.7.3
10
+
11
+ </title>
6
12
 
7
- <title>Class: Safubot::Twitter::Tweet</title>
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
14
 
9
- <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
10
16
 
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "../../";
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '../..';
19
+ if (relpath != '') relpath += '/';
13
20
  </script>
14
21
 
15
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
21
-
22
-
23
- <body id="top" class="class">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="../../index.html">Home</a>
28
- <a href="../../table_of_contents.html#classes">Classes</a>
29
- <a href="../../table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
-
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
22
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
44
23
 
24
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
45
25
 
46
- <div id="file-metadata">
47
- <nav id="file-list-section" class="section">
48
- <h3 class="section-header">Defined In</h3>
49
- <ul>
50
- <li>lib/safubot/twitter.rb
51
- </ul>
52
- </nav>
53
26
 
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
54
32
 
55
- </div>
56
-
57
- <div id="class-metadata">
58
-
59
- <nav id="parent-class-section" class="section">
60
- <h3 class="section-header">Parent</h3>
33
+ <div id="header">
34
+ <div id="menu">
61
35
 
62
- <p class="link"><a href="../../Object.html">Object</a>
36
+ <a href="../../_index.html">Index (T)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../../Safubot.html" title="Safubot (module)">Safubot</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Twitter.html" title="Safubot::Twitter (module)">Twitter</a></span></span>
38
+ &raquo;
39
+ <span class="title">Tweet</span>
63
40
 
64
- </nav>
65
-
66
- <!-- Included Modules -->
67
- <nav id="includes-section" class="section">
68
- <h3 class="section-header">Included Modules</h3>
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
69
44
 
70
- <ul class="link-list">
45
+ <div id="search">
71
46
 
47
+ <a id="class_list_link" href="#">Class List</a>
72
48
 
73
- <li><span class="include">MongoMapper::Document</span>
49
+ <a id="method_list_link" href="#">Method List</a>
74
50
 
51
+ <a id="file_list_link" href="#">File List</a>
75
52
 
76
- </ul>
77
- </nav>
78
-
79
- <!-- Method Quickref -->
80
- <nav id="method-list-section" class="section">
81
- <h3 class="section-header">Methods</h3>
82
-
83
- <ul class="link-list">
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
84
56
 
85
- <li><a href="#method-c-5B-5D">::[]</a>
57
+ <iframe id="search_frame"></iframe>
86
58
 
87
- <li><a href="#method-c-from">::from</a>
88
-
89
- <li><a href="#method-i-header_mentions">#header_mentions</a>
90
-
91
- <li><a href="#method-i-make_request">#make_request</a>
92
-
93
- <li><a href="#method-i-original_tweet">#original_tweet</a>
94
-
95
- <li><a href="#method-i-posted_at">#posted_at</a>
96
-
97
- <li><a href="#method-i-targetless_text">#targetless_text</a>
59
+ <div id="content"><h1>Class: Safubot::Twitter::Tweet
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">Safubot::Twitter::Tweet</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
98
80
 
99
- <li><a href="#method-i-text">#text</a>
81
+
82
+
100
83
 
101
- <li><a href="#method-i-user">#user</a>
84
+
102
85
 
103
- <li><a href="#method-i-username">#username</a>
86
+ <dt class="r2">Includes:</dt>
87
+ <dd class="r2">MongoMapper::Document</dd>
88
+
104
89
 
105
- </ul>
106
- </nav>
90
+
91
+
92
+
93
+ <dt class="r1 last">Defined in:</dt>
94
+ <dd class="r1 last">lib/safubot/twitter.rb</dd>
95
+
96
+ </dl>
97
+ <div class="clear"></div>
107
98
 
108
- </div>
99
+ <h2>Overview</h2><div class="docstring">
100
+ <div class="discussion">
101
+ <p>
102
+ Tweet is both a Request source and general-purpose tweet storage. Mentions
103
+ are automatically made into Requests, but not timeline tweets.
104
+ </p>
109
105
 
110
- <div id="project-metadata">
111
- <nav id="fileindex-section" class="section project-section">
112
- <h3 class="section-header">Pages</h3>
113
106
 
114
- <ul>
115
-
116
- <li class="file"><a href="../../Gemfile.html">Gemfile</a>
107
+ </div>
108
+ </div>
109
+ <div class="tags">
117
110
 
118
- <li class="file"><a href="../../Rakefile.html">Rakefile</a>
111
+
112
+ </div>
113
+
119
114
 
120
- </ul>
121
- </nav>
122
115
 
123
- <nav id="classindex-section" class="section project-section">
124
- <h3 class="section-header">Class and Module Index</h3>
125
116
 
126
- <ul class="link-list">
127
117
 
128
- <li><a href="../../Safubot.html">Safubot</a>
118
+
129
119
 
130
- <li><a href="../../Safubot/Bot.html">Safubot::Bot</a>
120
+ <h2>
121
+ Class Method Summary
122
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
123
+ </h2>
124
+
125
+ <ul class="summary">
126
+
127
+ <li class="public ">
128
+ <span class="summary_signature">
129
+
130
+ <a href="#%5B%5D-class_method" title="[] (class method)">+ (Object) <strong>[]</strong>(id) </a>
131
+
132
+
133
+
134
+ </span>
131
135
 
132
- <li><a href="../../Safubot/Evented.html">Safubot::Evented</a>
133
136
 
134
- <li><a href="../../Safubot/KnownUser.html">Safubot::KnownUser</a>
135
137
 
136
- <li><a href="../../Safubot/Log.html">Safubot::Log</a>
137
138
 
138
- <li><a href="../../Safubot/Query.html">Safubot::Query</a>
139
139
 
140
- <li><a href="../../Safubot/Request.html">Safubot::Request</a>
141
140
 
142
- <li><a href="../../Safubot/Response.html">Safubot::Response</a>
141
+
143
142
 
144
- <li><a href="../../Safubot/Test.html">Safubot::Test</a>
143
+ <span class="summary_desc"><div class='inline'><p>
144
+ Quickly look up a Tweet.
145
+ </p>
146
+ </div></span>
145
147
 
146
- <li><a href="../../Safubot/Twitter.html">Safubot::Twitter</a>
148
+ </li>
149
+
150
+
151
+ <li class="public ">
152
+ <span class="summary_signature">
153
+
154
+ <a href="#from-class_method" title="from (class method)">+ (Object) <strong>from</strong>(status) </a>
155
+
156
+
157
+
158
+ </span>
147
159
 
148
- <li><a href="../../Safubot/Twitter/Bot.html">Safubot::Twitter::Bot</a>
149
160
 
150
- <li><a href="../../Safubot/Twitter/DirectMessage.html">Safubot::Twitter::DirectMessage</a>
151
161
 
152
- <li><a href="../../Safubot/Twitter/Tweet.html">Safubot::Twitter::Tweet</a>
153
162
 
154
- <li><a href="../../Safubot/XMPP.html">Safubot::XMPP</a>
155
163
 
156
- <li><a href="../../Safubot/XMPP/Bot.html">Safubot::XMPP::Bot</a>
157
164
 
158
- <li><a href="../../Safubot/XMPP/Message.html">Safubot::XMPP::Message</a>
165
+
159
166
 
160
- <li><a href="../../Object.html">Object</a>
167
+ <span class="summary_desc"><div class='inline'><p>
168
+ Find or create a Tweet.
169
+ </p>
170
+ </div></span>
161
171
 
162
- </ul>
163
- </nav>
172
+ </li>
164
173
 
165
- </div>
166
- </nav>
167
-
168
- <div id="documentation">
169
- <h1 class="class">class Safubot::Twitter::Tweet</h1>
174
+
175
+ </ul>
176
+
177
+ <h2>
178
+ Instance Method Summary
179
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
180
+ </h2>
170
181
 
171
- <div id="description" class="description">
182
+ <ul class="summary">
183
+
184
+ <li class="public ">
185
+ <span class="summary_signature">
186
+
187
+ <a href="#header_mentions-instance_method" title="#header_mentions (instance method)">- (Object) <strong>header_mentions</strong> </a>
172
188
 
173
- <p><a href="Tweet.html">Tweet</a> is both a <a
174
- href="../Request.html">Request</a> source and general-purpose tweet
175
- storage. Mentions are automatically made into Requests, but not timeline
176
- tweets.</p>
177
-
178
- </div><!-- description -->
179
189
 
190
+
191
+ </span>
192
+
193
+
194
+
180
195
 
181
196
 
182
197
 
183
- <section id="5Buntitled-5D" class="documentation-section">
184
-
185
198
 
186
-
199
+
200
+ <span class="summary_desc"><div class='inline'><p>
201
+ Retrieve a substring containing the leading mentions.
202
+ </p>
203
+ </div></span>
204
+
205
+ </li>
187
206
 
207
+
208
+ <li class="public ">
209
+ <span class="summary_signature">
210
+
211
+ <a href="#make_request-instance_method" title="#make_request (instance method)">- (Object) <strong>make_request</strong> </a>
188
212
 
189
213
 
190
214
 
215
+ </span>
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+ <span class="summary_desc"><div class='inline'><p>
225
+ Finds or creates a Request sourced from this Tweet.
226
+ </p>
227
+ </div></span>
228
+
229
+ </li>
191
230
 
192
- <!-- Methods -->
231
+
232
+ <li class="public ">
233
+ <span class="summary_signature">
234
+
235
+ <a href="#original_tweet-instance_method" title="#original_tweet (instance method)">- (Object) <strong>original_tweet</strong> </a>
193
236
 
194
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
195
- <h3 class="section-header">Public Class Methods</h3>
196
237
 
197
238
 
198
- <div id="method-c-5B-5D" class="method-detail ">
199
-
200
- <div class="method-heading">
201
- <span class="method-name">[]</span><span
202
- class="method-args">(id)</span>
203
- <span class="method-click-advice">click to toggle source</span>
204
- </div>
205
-
239
+ </span>
240
+
241
+
242
+
243
+
244
+
245
+
206
246
 
207
- <div class="method-description">
208
-
209
- <p>Quickly look up a <a href="Tweet.html">Tweet</a>. @param id The <a
210
- href="../Twitter.html">Twitter</a> id.</p>
211
-
247
+
248
+ <span class="summary_desc"><div class='inline'><p>
249
+ Returns the original tweet of which this is a RT if available.
250
+ </p>
251
+ </div></span>
252
+
253
+ </li>
212
254
 
213
-
214
- <div class="method-source-code" id="5B-5D-source">
215
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 59</span>
216
- <span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">id</span>)
217
- <span class="ruby-constant">Tweet</span>.<span class="ruby-identifier">where</span>(<span class="ruby-string">'raw.id'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">id</span>).<span class="ruby-identifier">first</span>
218
- <span class="ruby-keyword">end</span></pre>
219
- </div><!-- 5B-5D-source -->
220
-
221
- </div>
255
+
256
+ <li class="public ">
257
+ <span class="summary_signature">
258
+
259
+ <a href="#posted_at-instance_method" title="#posted_at (instance method)">- (Object) <strong>posted_at</strong> </a>
260
+
222
261
 
223
-
262
+
263
+ </span>
264
+
265
+
266
+
267
+
268
+
269
+
224
270
 
225
-
226
- </div><!-- 5B-5D-method -->
271
+
272
+ <span class="summary_desc"><div class='inline'><p>
273
+ Returns a Time object specifying the time of publication.
274
+ </p>
275
+ </div></span>
276
+
277
+ </li>
227
278
 
279
+
280
+ <li class="public ">
281
+ <span class="summary_signature">
282
+
283
+ <a href="#targetless_text-instance_method" title="#targetless_text (instance method)">- (Object) <strong>targetless_text</strong> </a>
228
284
 
229
- <div id="method-c-from" class="method-detail ">
230
-
231
- <div class="method-heading">
232
- <span class="method-name">from</span><span
233
- class="method-args">(status)</span>
234
- <span class="method-click-advice">click to toggle source</span>
235
- </div>
236
-
237
-
238
- <div class="method-description">
239
-
240
- <p>Find or create a <a href="Tweet.html">Tweet</a>. @param status An
241
- appropriate ::Twitter or ::TweetStream object.</p>
242
-
243
285
 
244
-
245
- <div class="method-source-code" id="from-source">
246
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 65</span>
247
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">from</span>(<span class="ruby-identifier">status</span>)
248
- <span class="ruby-constant">Tweet</span>.<span class="ruby-identifier">where</span>(<span class="ruby-string">'raw.id'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">status</span>[<span class="ruby-string">'id'</span>]<span class="ruby-operator">||</span><span class="ruby-identifier">status</span>.<span class="ruby-identifier">id</span>).<span class="ruby-identifier">first</span> <span class="ruby-operator">||</span>
249
- <span class="ruby-constant">Tweet</span>.<span class="ruby-identifier">create</span>(<span class="ruby-value">:raw</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">status</span>[<span class="ruby-string">'attrs'</span>]<span class="ruby-operator">||</span><span class="ruby-identifier">status</span>)
250
- <span class="ruby-keyword">end</span></pre>
251
- </div><!-- from-source -->
252
-
253
- </div>
286
+
287
+ </span>
288
+
289
+
290
+
291
+
292
+
293
+
254
294
 
255
-
295
+
296
+ <span class="summary_desc"><div class='inline'><p>
297
+ Plain text without the leading mentions.
298
+ </p>
299
+ </div></span>
300
+
301
+ </li>
256
302
 
257
-
258
- </div><!-- from-method -->
303
+
304
+ <li class="public ">
305
+ <span class="summary_signature">
306
+
307
+ <a href="#text-instance_method" title="#text (instance method)">- (Object) <strong>text</strong> </a>
308
+
259
309
 
260
310
 
261
- </section><!-- public-class-method-details -->
311
+ </span>
312
+
313
+
314
+
315
+
316
+
262
317
 
263
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
264
- <h3 class="section-header">Public Instance Methods</h3>
265
318
 
266
-
267
- <div id="method-i-header_mentions" class="method-detail ">
268
-
269
- <div class="method-heading">
270
- <span class="method-name">header_mentions</span><span
271
- class="method-args">()</span>
272
- <span class="method-click-advice">click to toggle source</span>
273
- </div>
274
-
319
+
320
+ <span class="summary_desc"><div class='inline'><p>
321
+ The plain text.
322
+ </p>
323
+ </div></span>
324
+
325
+ </li>
275
326
 
276
- <div class="method-description">
277
-
278
- <p>Retrieve a substring containing the leading mentions.</p>
279
-
327
+
328
+ <li class="public ">
329
+ <span class="summary_signature">
330
+
331
+ <a href="#user-instance_method" title="#user (instance method)">- (Object) <strong>user</strong> </a>
332
+
280
333
 
281
-
282
- <div class="method-source-code" id="header_mentions-source">
283
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 82</span>
284
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">header_mentions</span>
285
- <span class="ruby-identifier">m</span> = <span class="ruby-identifier">text</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp">/(@\w+ )+/</span>)
286
- <span class="ruby-identifier">m</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> [] <span class="ruby-operator">:</span> <span class="ruby-identifier">m</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">split</span>
287
- <span class="ruby-keyword">end</span></pre>
288
- </div><!-- header_mentions-source -->
289
-
290
- </div>
334
+
335
+ </span>
336
+
337
+
338
+
339
+
340
+
341
+
291
342
 
292
-
343
+
344
+ <span class="summary_desc"><div class='inline'><p>
345
+ Finds or creates a KnownUser connected to this Tweet.
346
+ </p>
347
+ </div></span>
348
+
349
+ </li>
293
350
 
294
-
295
- </div><!-- header_mentions-method -->
351
+
352
+ <li class="public ">
353
+ <span class="summary_signature">
354
+
355
+ <a href="#username-instance_method" title="#username (instance method)">- (Object) <strong>username</strong> </a>
356
+
296
357
 
297
358
 
298
- <div id="method-i-make_request" class="method-detail ">
299
-
300
- <div class="method-heading">
301
- <span class="method-name">make_request</span><span
302
- class="method-args">()</span>
303
- <span class="method-click-advice">click to toggle source</span>
304
- </div>
305
-
359
+ </span>
360
+
361
+
362
+
363
+
364
+
365
+
306
366
 
307
- <div class="method-description">
308
-
309
- <p>Finds or creates a <a href="../Request.html">Request</a> sourced from this
310
- <a href="Tweet.html">Tweet</a>.</p>
311
-
367
+
368
+ <span class="summary_desc"><div class='inline'><p>
369
+ Finds the user&#8217;s screen_name.
370
+ </p>
371
+ </div></span>
372
+
373
+ </li>
312
374
 
313
-
314
- <div class="method-source-code" id="make_request-source">
315
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 108</span>
316
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">make_request</span>
317
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">request</span> <span class="ruby-operator">||</span> <span class="ruby-constant">Request</span>.<span class="ruby-identifier">create</span>(<span class="ruby-value">:user</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">user</span>, <span class="ruby-value">:source</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>, <span class="ruby-value">:text</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">targetless_text</span>)
318
- <span class="ruby-keyword">end</span></pre>
319
- </div><!-- make_request-source -->
320
-
321
- </div>
375
+
376
+ </ul>
377
+
322
378
 
323
-
324
379
 
325
-
326
- </div><!-- make_request-method -->
380
+
327
381
 
382
+ <div id="class_method_details" class="method_details_list">
383
+ <h2>Class Method Details</h2>
328
384
 
329
- <div id="method-i-original_tweet" class="method-detail ">
330
-
331
- <div class="method-heading">
332
- <span class="method-name">original_tweet</span><span
333
- class="method-args">()</span>
334
- <span class="method-click-advice">click to toggle source</span>
335
- </div>
336
-
337
-
338
- <div class="method-description">
339
-
340
- <p>Returns the original tweet of which this is a RT if available.</p>
341
-
342
-
343
-
344
- <div class="method-source-code" id="original_tweet-source">
345
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 88</span>
346
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">original_tweet</span>
347
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw</span>[<span class="ruby-string">'retweeted_status'</span>] <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">Tweet</span>.<span class="ruby-identifier">from</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw</span>[<span class="ruby-string">'retweeted_status'</span>])
348
- <span class="ruby-keyword">end</span></pre>
349
- </div><!-- original_tweet-source -->
350
-
351
- </div>
385
+
386
+ <div class="method_details first">
387
+ <p class="signature first" id="[]-class_method">
388
+
389
+ + (<tt>Object</tt>) <strong>[]</strong>(id)
390
+
352
391
 
353
-
392
+
393
+ </p><div class="docstring">
394
+ <div class="discussion">
395
+ <p>
396
+ Quickly look up a Tweet.
397
+ </p>
354
398
 
355
-
356
- </div><!-- original_tweet-method -->
357
399
 
400
+ </div>
401
+ </div>
402
+ <div class="tags">
403
+ <h3>Parameters:</h3>
404
+ <ul class="param">
405
+
406
+ <li>
407
+
408
+ <span class='name'>id</span>
409
+
410
+
411
+ <span class='type'></span>
412
+
413
+
414
+
415
+ &mdash;
416
+ <div class='inline'><p>
417
+ The Twitter id.
418
+ </p>
419
+ </div>
420
+
421
+ </li>
422
+
423
+ </ul>
424
+
425
+
426
+ </div><table class="source_code">
427
+ <tr>
428
+ <td>
429
+ <pre class="lines">
430
+
431
+
432
+ 59
433
+ 60
434
+ 61</pre>
435
+ </td>
436
+ <td>
437
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 59</span>
438
+
439
+ <span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span><span class='id id'>id</span><span class='rparen'>)</span>
440
+ <span class='const'>Tweet</span><span class='period'>.</span><span class='id where'>where</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>raw.id</span><span class='tstring_end'>'</span></span> <span class='op'>=&gt;</span> <span class='id id'>id</span><span class='rparen'>)</span><span class='period'>.</span><span class='id first'>first</span>
441
+ <span class='kw'>end</span></pre>
442
+ </td>
443
+ </tr>
444
+ </table>
445
+ </div>
358
446
 
359
- <div id="method-i-posted_at" class="method-detail ">
360
-
361
- <div class="method-heading">
362
- <span class="method-name">posted_at</span><span
363
- class="method-args">()</span>
364
- <span class="method-click-advice">click to toggle source</span>
365
- </div>
366
-
367
-
368
- <div class="method-description">
369
-
370
- <p>Returns a Time object specifying the time of publication.</p>
371
-
372
-
373
-
374
- <div class="method-source-code" id="posted_at-source">
375
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 103</span>
376
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">posted_at</span>
377
- <span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw</span>[<span class="ruby-string">'created_at'</span>])
378
- <span class="ruby-keyword">end</span></pre>
379
- </div><!-- posted_at-source -->
380
-
381
- </div>
447
+ <div class="method_details ">
448
+ <p class="signature " id="from-class_method">
449
+
450
+ + (<tt>Object</tt>) <strong>from</strong>(status)
451
+
382
452
 
383
-
453
+
454
+ </p><div class="docstring">
455
+ <div class="discussion">
456
+ <p>
457
+ Find or create a Tweet.
458
+ </p>
384
459
 
385
-
386
- </div><!-- posted_at-method -->
387
460
 
461
+ </div>
462
+ </div>
463
+ <div class="tags">
464
+ <h3>Parameters:</h3>
465
+ <ul class="param">
466
+
467
+ <li>
468
+
469
+ <span class='name'>status</span>
470
+
471
+
472
+ <span class='type'></span>
473
+
474
+
475
+
476
+ &mdash;
477
+ <div class='inline'><p>
478
+ An appropriate ::Twitter or ::TweetStream object.
479
+ </p>
480
+ </div>
481
+
482
+ </li>
483
+
484
+ </ul>
485
+
486
+
487
+ </div><table class="source_code">
488
+ <tr>
489
+ <td>
490
+ <pre class="lines">
491
+
492
+
493
+ 65
494
+ 66
495
+ 67
496
+ 68</pre>
497
+ </td>
498
+ <td>
499
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 65</span>
500
+
501
+ <span class='kw'>def</span> <span class='id from'>from</span><span class='lparen'>(</span><span class='id status'>status</span><span class='rparen'>)</span>
502
+ <span class='const'>Tweet</span><span class='period'>.</span><span class='id where'>where</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>raw.id</span><span class='tstring_end'>'</span></span> <span class='op'>=&gt;</span> <span class='id status'>status</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='op'>||</span><span class='id status'>status</span><span class='period'>.</span><span class='id id'>id</span><span class='rparen'>)</span><span class='period'>.</span><span class='id first'>first</span> <span class='op'>||</span>
503
+ <span class='const'>Tweet</span><span class='period'>.</span><span class='id create'>create</span><span class='lparen'>(</span><span class='symbol'>:raw</span> <span class='op'>=&gt;</span> <span class='id status'>status</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attrs</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='op'>||</span><span class='id status'>status</span><span class='rparen'>)</span>
504
+ <span class='kw'>end</span></pre>
505
+ </td>
506
+ </tr>
507
+ </table>
508
+ </div>
388
509
 
389
- <div id="method-i-targetless_text" class="method-detail ">
390
-
391
- <div class="method-heading">
392
- <span class="method-name">targetless_text</span><span
393
- class="method-args">()</span>
394
- <span class="method-click-advice">click to toggle source</span>
395
- </div>
396
-
397
-
398
- <div class="method-description">
399
-
400
- <p>Plain text without the leading mentions.</p>
401
-
510
+ </div>
402
511
 
403
-
404
- <div class="method-source-code" id="targetless_text-source">
405
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 77</span>
406
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">targetless_text</span>
407
- <span class="ruby-identifier">text</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/^(@\w+ )+/</span>, <span class="ruby-string">''</span>)
408
- <span class="ruby-keyword">end</span></pre>
409
- </div><!-- targetless_text-source -->
410
-
411
- </div>
512
+ <div id="instance_method_details" class="method_details_list">
513
+ <h2>Instance Method Details</h2>
514
+
515
+
516
+ <div class="method_details first">
517
+ <p class="signature first" id="header_mentions-instance_method">
518
+
519
+ - (<tt>Object</tt>) <strong>header_mentions</strong>
520
+
412
521
 
413
-
522
+
523
+ </p><div class="docstring">
524
+ <div class="discussion">
525
+ <p>
526
+ Retrieve a substring containing the leading mentions.
527
+ </p>
414
528
 
415
-
416
- </div><!-- targetless_text-method -->
417
529
 
530
+ </div>
531
+ </div>
532
+ <div class="tags">
533
+
534
+
535
+ </div><table class="source_code">
536
+ <tr>
537
+ <td>
538
+ <pre class="lines">
539
+
540
+
541
+ 82
542
+ 83
543
+ 84
544
+ 85</pre>
545
+ </td>
546
+ <td>
547
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 82</span>
548
+
549
+ <span class='kw'>def</span> <span class='id header_mentions'>header_mentions</span>
550
+ <span class='id m'>m</span> <span class='op'>=</span> <span class='id text'>text</span><span class='period'>.</span><span class='id match'>match</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(@\w+ )+</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span>
551
+ <span class='id m'>m</span><span class='period'>.</span><span class='id nil?'>nil?</span> <span class='op'>?</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='id m'>m</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id split'>split</span>
552
+ <span class='kw'>end</span></pre>
553
+ </td>
554
+ </tr>
555
+ </table>
556
+ </div>
418
557
 
419
- <div id="method-i-text" class="method-detail ">
420
-
421
- <div class="method-heading">
422
- <span class="method-name">text</span><span
423
- class="method-args">()</span>
424
- <span class="method-click-advice">click to toggle source</span>
425
- </div>
426
-
558
+ <div class="method_details ">
559
+ <p class="signature " id="make_request-instance_method">
560
+
561
+ - (<tt>Object</tt>) <strong>make_request</strong>
562
+
427
563
 
428
- <div class="method-description">
429
-
430
- <p>The plain text.</p>
431
-
564
+
565
+ </p><div class="docstring">
566
+ <div class="discussion">
567
+ <p>
568
+ Finds or creates a Request sourced from this Tweet.
569
+ </p>
432
570
 
433
-
434
- <div class="method-source-code" id="text-source">
435
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 72</span>
436
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">text</span>
437
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw</span>[<span class="ruby-string">'text'</span>]
438
- <span class="ruby-keyword">end</span></pre>
439
- </div><!-- text-source -->
440
-
441
- </div>
442
571
 
443
-
572
+ </div>
573
+ </div>
574
+ <div class="tags">
575
+
576
+
577
+ </div><table class="source_code">
578
+ <tr>
579
+ <td>
580
+ <pre class="lines">
581
+
582
+
583
+ 108
584
+ 109
585
+ 110</pre>
586
+ </td>
587
+ <td>
588
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 108</span>
589
+
590
+ <span class='kw'>def</span> <span class='id make_request'>make_request</span>
591
+ <span class='kw'>self</span><span class='period'>.</span><span class='id request'>request</span> <span class='op'>||</span> <span class='const'>Request</span><span class='period'>.</span><span class='id create'>create</span><span class='lparen'>(</span><span class='symbol'>:user</span> <span class='op'>=&gt;</span> <span class='id user'>user</span><span class='comma'>,</span> <span class='symbol'>:source</span> <span class='op'>=&gt;</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:text</span> <span class='op'>=&gt;</span> <span class='kw'>self</span><span class='period'>.</span><span class='id targetless_text'>targetless_text</span><span class='rparen'>)</span>
592
+ <span class='kw'>end</span></pre>
593
+ </td>
594
+ </tr>
595
+ </table>
596
+ </div>
597
+
598
+ <div class="method_details ">
599
+ <p class="signature " id="original_tweet-instance_method">
600
+
601
+ - (<tt>Object</tt>) <strong>original_tweet</strong>
602
+
444
603
 
445
-
446
- </div><!-- text-method -->
604
+
605
+ </p><div class="docstring">
606
+ <div class="discussion">
607
+ <p>
608
+ Returns the original tweet of which this is a RT if available.
609
+ </p>
447
610
 
611
+
612
+ </div>
613
+ </div>
614
+ <div class="tags">
615
+
616
+
617
+ </div><table class="source_code">
618
+ <tr>
619
+ <td>
620
+ <pre class="lines">
621
+
622
+
623
+ 88
624
+ 89
625
+ 90</pre>
626
+ </td>
627
+ <td>
628
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 88</span>
629
+
630
+ <span class='kw'>def</span> <span class='id original_tweet'>original_tweet</span>
631
+ <span class='kw'>self</span><span class='period'>.</span><span class='id raw'>raw</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>retweeted_status</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>&amp;&amp;</span> <span class='const'>Tweet</span><span class='period'>.</span><span class='id from'>from</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id raw'>raw</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>retweeted_status</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
632
+ <span class='kw'>end</span></pre>
633
+ </td>
634
+ </tr>
635
+ </table>
636
+ </div>
448
637
 
449
- <div id="method-i-user" class="method-detail ">
450
-
451
- <div class="method-heading">
452
- <span class="method-name">user</span><span
453
- class="method-args">()</span>
454
- <span class="method-click-advice">click to toggle source</span>
455
- </div>
456
-
638
+ <div class="method_details ">
639
+ <p class="signature " id="posted_at-instance_method">
640
+
641
+ - (<tt>Object</tt>) <strong>posted_at</strong>
642
+
457
643
 
458
- <div class="method-description">
459
-
460
- <p>Finds or creates a <a href="../KnownUser.html">KnownUser</a> connected to
461
- this <a href="Tweet.html">Tweet</a>.</p>
462
-
644
+
645
+ </p><div class="docstring">
646
+ <div class="discussion">
647
+ <p>
648
+ Returns a Time object specifying the time of publication.
649
+ </p>
463
650
 
464
-
465
- <div class="method-source-code" id="user-source">
466
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 93</span>
467
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">user</span>
468
- <span class="ruby-constant">KnownUser</span>.<span class="ruby-identifier">by_twitter</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw</span>[<span class="ruby-string">'user'</span>][<span class="ruby-string">'id'</span>])
469
- <span class="ruby-keyword">end</span></pre>
470
- </div><!-- user-source -->
471
-
472
- </div>
473
651
 
474
-
652
+ </div>
653
+ </div>
654
+ <div class="tags">
655
+
656
+
657
+ </div><table class="source_code">
658
+ <tr>
659
+ <td>
660
+ <pre class="lines">
661
+
662
+
663
+ 103
664
+ 104
665
+ 105</pre>
666
+ </td>
667
+ <td>
668
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 103</span>
669
+
670
+ <span class='kw'>def</span> <span class='id posted_at'>posted_at</span>
671
+ <span class='const'>Time</span><span class='period'>.</span><span class='id parse'>parse</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id raw'>raw</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>created_at</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
672
+ <span class='kw'>end</span></pre>
673
+ </td>
674
+ </tr>
675
+ </table>
676
+ </div>
677
+
678
+ <div class="method_details ">
679
+ <p class="signature " id="targetless_text-instance_method">
680
+
681
+ - (<tt>Object</tt>) <strong>targetless_text</strong>
682
+
683
+
684
+
685
+ </p><div class="docstring">
686
+ <div class="discussion">
687
+ <p>
688
+ Plain text without the leading mentions.
689
+ </p>
475
690
 
476
-
477
- </div><!-- user-method -->
478
691
 
692
+ </div>
693
+ </div>
694
+ <div class="tags">
695
+
696
+
697
+ </div><table class="source_code">
698
+ <tr>
699
+ <td>
700
+ <pre class="lines">
701
+
702
+
703
+ 77
704
+ 78
705
+ 79</pre>
706
+ </td>
707
+ <td>
708
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 77</span>
709
+
710
+ <span class='kw'>def</span> <span class='id targetless_text'>targetless_text</span>
711
+ <span class='id text'>text</span><span class='period'>.</span><span class='id gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^(@\w+ )+</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
712
+ <span class='kw'>end</span></pre>
713
+ </td>
714
+ </tr>
715
+ </table>
716
+ </div>
479
717
 
480
- <div id="method-i-username" class="method-detail ">
481
-
482
- <div class="method-heading">
483
- <span class="method-name">username</span><span
484
- class="method-args">()</span>
485
- <span class="method-click-advice">click to toggle source</span>
486
- </div>
487
-
718
+ <div class="method_details ">
719
+ <p class="signature " id="text-instance_method">
720
+
721
+ - (<tt>Object</tt>) <strong>text</strong>
722
+
488
723
 
489
- <div class="method-description">
490
-
491
- <p>Finds the user’s screen_name.</p>
492
-
724
+
725
+ </p><div class="docstring">
726
+ <div class="discussion">
727
+ <p>
728
+ The plain text.
729
+ </p>
493
730
 
494
-
495
- <div class="method-source-code" id="username-source">
496
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 98</span>
497
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">username</span>
498
- <span class="ruby-identifier">user</span>.<span class="ruby-identifier">twitter</span>[<span class="ruby-string">'screen_name'</span>]
499
- <span class="ruby-keyword">end</span></pre>
500
- </div><!-- username-source -->
501
-
502
- </div>
503
731
 
504
-
732
+ </div>
733
+ </div>
734
+ <div class="tags">
735
+
736
+
737
+ </div><table class="source_code">
738
+ <tr>
739
+ <td>
740
+ <pre class="lines">
741
+
742
+
743
+ 72
744
+ 73
745
+ 74</pre>
746
+ </td>
747
+ <td>
748
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 72</span>
749
+
750
+ <span class='kw'>def</span> <span class='id text'>text</span>
751
+ <span class='kw'>self</span><span class='period'>.</span><span class='id raw'>raw</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>text</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
752
+ <span class='kw'>end</span></pre>
753
+ </td>
754
+ </tr>
755
+ </table>
756
+ </div>
757
+
758
+ <div class="method_details ">
759
+ <p class="signature " id="user-instance_method">
760
+
761
+ - (<tt>Object</tt>) <strong>user</strong>
762
+
763
+
764
+
765
+ </p><div class="docstring">
766
+ <div class="discussion">
767
+ <p>
768
+ Finds or creates a KnownUser connected to this Tweet.
769
+ </p>
505
770
 
506
-
507
- </div><!-- username-method -->
508
771
 
772
+ </div>
773
+ </div>
774
+ <div class="tags">
775
+
776
+
777
+ </div><table class="source_code">
778
+ <tr>
779
+ <td>
780
+ <pre class="lines">
781
+
782
+
783
+ 93
784
+ 94
785
+ 95</pre>
786
+ </td>
787
+ <td>
788
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 93</span>
789
+
790
+ <span class='kw'>def</span> <span class='id user'>user</span>
791
+ <span class='const'>KnownUser</span><span class='period'>.</span><span class='id by_twitter'>by_twitter</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id raw'>raw</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>user</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
792
+ <span class='kw'>end</span></pre>
793
+ </td>
794
+ </tr>
795
+ </table>
796
+ </div>
509
797
 
510
- </section><!-- public-instance-method-details -->
798
+ <div class="method_details ">
799
+ <p class="signature " id="username-instance_method">
800
+
801
+ - (<tt>Object</tt>) <strong>username</strong>
511
802
 
512
- </section><!-- 5Buntitled-5D -->
513
803
 
514
- </div><!-- documentation -->
804
+
805
+ </p><div class="docstring">
806
+ <div class="discussion">
807
+ <p>
808
+ Finds the user&#8217;s screen_name.
809
+ </p>
515
810
 
516
811
 
517
- <footer id="validator-badges">
518
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
519
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
520
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
521
- </footer>
812
+ </div>
813
+ </div>
814
+ <div class="tags">
815
+
816
+
817
+ </div><table class="source_code">
818
+ <tr>
819
+ <td>
820
+ <pre class="lines">
821
+
822
+
823
+ 98
824
+ 99
825
+ 100</pre>
826
+ </td>
827
+ <td>
828
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 98</span>
829
+
830
+ <span class='kw'>def</span> <span class='id username'>username</span>
831
+ <span class='id user'>user</span><span class='period'>.</span><span class='id twitter'>twitter</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>screen_name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
832
+ <span class='kw'>end</span></pre>
833
+ </td>
834
+ </tr>
835
+ </table>
836
+ </div>
837
+
838
+ </div>
522
839
 
840
+ </div>
841
+
842
+ <div id="footer">
843
+ Generated on Mon Nov 28 20:20:04 2011 by
844
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
845
+ 0.7.3 (ruby-1.9.2).
846
+ </div>
847
+
848
+ </body>
849
+ </html>