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,327 +1,506 @@
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::DirectMessage
8
+
9
+ &mdash; Documentation by YARD 0.7.3
10
+
11
+ </title>
6
12
 
7
- <title>Class: Safubot::Twitter::DirectMessage</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>
22
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
32
23
 
24
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
33
25
 
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>
44
-
45
-
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 (D)</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">DirectMessage</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-from">::from</a>
57
+ <iframe id="search_frame"></iframe>
86
58
 
87
- <li><a href="#method-i-make_request">#make_request</a>
59
+ <div id="content"><h1>Class: Safubot::Twitter::DirectMessage
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::DirectMessage</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
80
+
81
+
82
+
88
83
 
89
- <li><a href="#method-i-text">#text</a>
84
+
90
85
 
91
- <li><a href="#method-i-user">#user</a>
86
+ <dt class="r2">Includes:</dt>
87
+ <dd class="r2">MongoMapper::Document</dd>
88
+
92
89
 
93
- </ul>
94
- </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>
98
+
99
+ <h2>Overview</h2><div class="docstring">
100
+ <div class="discussion">
101
+ <p>
102
+ DirectMessage is a Request source. All DirectMessages are made into
103
+ Requests as they are received.
104
+ </p>
105
+
95
106
 
96
107
  </div>
108
+ </div>
109
+ <div class="tags">
110
+
97
111
 
98
- <div id="project-metadata">
99
- <nav id="fileindex-section" class="section project-section">
100
- <h3 class="section-header">Pages</h3>
112
+ </div>
101
113
 
102
- <ul>
103
114
 
104
- <li class="file"><a href="../../Gemfile.html">Gemfile</a>
115
+
116
+
105
117
 
106
- <li class="file"><a href="../../Rakefile.html">Rakefile</a>
118
+
107
119
 
108
- </ul>
109
- </nav>
120
+ <h2>
121
+ Class Method Summary
122
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
123
+ </h2>
110
124
 
111
- <nav id="classindex-section" class="section project-section">
112
- <h3 class="section-header">Class and Module Index</h3>
125
+ <ul class="summary">
126
+
127
+ <li class="public ">
128
+ <span class="summary_signature">
129
+
130
+ <a href="#from-class_method" title="from (class method)">+ (Object) <strong>from</strong>(message) </a>
131
+
113
132
 
114
- <ul class="link-list">
115
-
116
- <li><a href="../../Safubot.html">Safubot</a>
133
+
134
+ </span>
117
135
 
118
- <li><a href="../../Safubot/Bot.html">Safubot::Bot</a>
119
136
 
120
- <li><a href="../../Safubot/Evented.html">Safubot::Evented</a>
121
137
 
122
- <li><a href="../../Safubot/KnownUser.html">Safubot::KnownUser</a>
123
138
 
124
- <li><a href="../../Safubot/Log.html">Safubot::Log</a>
125
139
 
126
- <li><a href="../../Safubot/Query.html">Safubot::Query</a>
127
140
 
128
- <li><a href="../../Safubot/Request.html">Safubot::Request</a>
141
+
129
142
 
130
- <li><a href="../../Safubot/Response.html">Safubot::Response</a>
143
+ <span class="summary_desc"><div class='inline'><p>
144
+ Find or create a DirectMessage.
145
+ </p>
146
+ </div></span>
131
147
 
132
- <li><a href="../../Safubot/Test.html">Safubot::Test</a>
148
+ </li>
149
+
150
+
151
+ </ul>
133
152
 
134
- <li><a href="../../Safubot/Twitter.html">Safubot::Twitter</a>
153
+ <h2>
154
+ Instance Method Summary
155
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
156
+ </h2>
157
+
158
+ <ul class="summary">
159
+
160
+ <li class="public ">
161
+ <span class="summary_signature">
162
+
163
+ <a href="#make_request-instance_method" title="#make_request (instance method)">- (Object) <strong>make_request</strong> </a>
164
+
165
+
166
+
167
+ </span>
135
168
 
136
- <li><a href="../../Safubot/Twitter/Bot.html">Safubot::Twitter::Bot</a>
137
169
 
138
- <li><a href="../../Safubot/Twitter/DirectMessage.html">Safubot::Twitter::DirectMessage</a>
139
170
 
140
- <li><a href="../../Safubot/Twitter/Tweet.html">Safubot::Twitter::Tweet</a>
141
171
 
142
- <li><a href="../../Safubot/XMPP.html">Safubot::XMPP</a>
143
172
 
144
- <li><a href="../../Safubot/XMPP/Bot.html">Safubot::XMPP::Bot</a>
145
173
 
146
- <li><a href="../../Safubot/XMPP/Message.html">Safubot::XMPP::Message</a>
174
+
147
175
 
148
- <li><a href="../../Object.html">Object</a>
176
+ <span class="summary_desc"><div class='inline'><p>
177
+ Finds or creates a Request sourced from this DirectMessage.
178
+ </p>
179
+ </div></span>
149
180
 
150
- </ul>
151
- </nav>
152
-
153
- </div>
154
- </nav>
155
-
156
- <div id="documentation">
157
- <h1 class="class">class Safubot::Twitter::DirectMessage</h1>
181
+ </li>
158
182
 
159
- <div id="description" class="description">
183
+
184
+ <li class="public ">
185
+ <span class="summary_signature">
186
+
187
+ <a href="#text-instance_method" title="#text (instance method)">- (Object) <strong>text</strong> </a>
160
188
 
161
- <p><a href="DirectMessage.html">DirectMessage</a> is a <a
162
- href="../Request.html">Request</a> source. All DirectMessages are made into
163
- Requests as they are received.</p>
164
-
165
- </div><!-- description -->
166
189
 
190
+
191
+ </span>
192
+
193
+
194
+
167
195
 
168
196
 
169
197
 
170
- <section id="5Buntitled-5D" class="documentation-section">
171
-
172
198
 
173
-
199
+
200
+ <span class="summary_desc"><div class='inline'><p>
201
+ The plain text.
202
+ </p>
203
+ </div></span>
204
+
205
+ </li>
174
206
 
207
+
208
+ <li class="public ">
209
+ <span class="summary_signature">
175
210
 
176
-
211
+ <a href="#user-instance_method" title="#user (instance method)">- (Object) <strong>user</strong> </a>
177
212
 
178
213
 
179
- <!-- Methods -->
180
214
 
181
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
182
- <h3 class="section-header">Public Class Methods</h3>
215
+ </span>
216
+
217
+
218
+
219
+
220
+
221
+
183
222
 
223
+
224
+ <span class="summary_desc"><div class='inline'><p>
225
+ Finds or creates a KnownUser connected to this DirectMessage.
226
+ </p>
227
+ </div></span>
228
+
229
+ </li>
230
+
231
+
232
+ <li class="public ">
233
+ <span class="summary_signature">
234
+
235
+ <a href="#username-instance_method" title="#username (instance method)">- (Object) <strong>username</strong> </a>
184
236
 
185
- <div id="method-c-from" class="method-detail ">
186
-
187
- <div class="method-heading">
188
- <span class="method-name">from</span><span
189
- class="method-args">(message)</span>
190
- <span class="method-click-advice">click to toggle source</span>
191
- </div>
192
-
193
237
 
194
- <div class="method-description">
195
-
196
- <p>Find or create a <a href="DirectMessage.html">DirectMessage</a>. @param
197
- message An appropriate ::Twitter or ::TweetStream object.</p>
198
-
238
+
239
+ </span>
240
+
241
+
242
+
243
+
244
+
245
+
199
246
 
200
-
201
- <div class="method-source-code" id="from-source">
202
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 128</span>
203
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">from</span>(<span class="ruby-identifier">message</span>)
204
- <span class="ruby-constant">DirectMessage</span>.<span class="ruby-identifier">where</span>(<span class="ruby-string">'raw.id'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">message</span>.<span class="ruby-identifier">id</span>).<span class="ruby-identifier">first</span> <span class="ruby-operator">||</span>
205
- <span class="ruby-constant">DirectMessage</span>.<span class="ruby-identifier">create</span>(<span class="ruby-value">:raw</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">message</span>[<span class="ruby-string">'attrs'</span>]<span class="ruby-operator">||</span><span class="ruby-identifier">message</span>)
206
- <span class="ruby-keyword">end</span></pre>
207
- </div><!-- from-source -->
208
-
209
- </div>
247
+
248
+ <span class="summary_desc"><div class='inline'><p>
249
+ Finds the user&#8217;s screen_name.
250
+ </p>
251
+ </div></span>
252
+
253
+ </li>
210
254
 
211
-
255
+
256
+ </ul>
257
+
212
258
 
213
-
214
- </div><!-- from-method -->
215
259
 
216
-
217
- </section><!-- public-class-method-details -->
218
260
 
219
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
220
- <h3 class="section-header">Public Instance Methods</h3>
221
261
 
262
+ <div id="class_method_details" class="method_details_list">
263
+ <h2>Class Method Details</h2>
222
264
 
223
- <div id="method-i-make_request" class="method-detail ">
224
-
225
- <div class="method-heading">
226
- <span class="method-name">make_request</span><span
227
- class="method-args">()</span>
228
- <span class="method-click-advice">click to toggle source</span>
229
- </div>
230
-
231
-
232
- <div class="method-description">
233
-
234
- <p>Finds or creates a <a href="../Request.html">Request</a> sourced from this
235
- <a href="DirectMessage.html">DirectMessage</a>.</p>
236
-
237
-
238
-
239
- <div class="method-source-code" id="make_request-source">
240
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 145</span>
241
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">make_request</span>
242
- <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">text</span>)
243
- <span class="ruby-keyword">end</span></pre>
244
- </div><!-- make_request-source -->
245
-
246
- </div>
265
+
266
+ <div class="method_details first">
267
+ <p class="signature first" id="from-class_method">
268
+
269
+ + (<tt>Object</tt>) <strong>from</strong>(message)
270
+
247
271
 
248
-
272
+
273
+ </p><div class="docstring">
274
+ <div class="discussion">
275
+ <p>
276
+ Find or create a DirectMessage.
277
+ </p>
249
278
 
250
-
251
- </div><!-- make_request-method -->
252
279
 
280
+ </div>
281
+ </div>
282
+ <div class="tags">
283
+ <h3>Parameters:</h3>
284
+ <ul class="param">
285
+
286
+ <li>
287
+
288
+ <span class='name'>message</span>
289
+
290
+
291
+ <span class='type'></span>
292
+
293
+
294
+
295
+ &mdash;
296
+ <div class='inline'><p>
297
+ An appropriate ::Twitter or ::TweetStream object.
298
+ </p>
299
+ </div>
300
+
301
+ </li>
302
+
303
+ </ul>
304
+
305
+
306
+ </div><table class="source_code">
307
+ <tr>
308
+ <td>
309
+ <pre class="lines">
310
+
311
+
312
+ 128
313
+ 129
314
+ 130
315
+ 131</pre>
316
+ </td>
317
+ <td>
318
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 128</span>
319
+
320
+ <span class='kw'>def</span> <span class='id from'>from</span><span class='lparen'>(</span><span class='id message'>message</span><span class='rparen'>)</span>
321
+ <span class='const'>DirectMessage</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 message'>message</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 message'>message</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>
322
+ <span class='const'>DirectMessage</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 message'>message</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 message'>message</span><span class='rparen'>)</span>
323
+ <span class='kw'>end</span></pre>
324
+ </td>
325
+ </tr>
326
+ </table>
327
+ </div>
253
328
 
254
- <div id="method-i-text" class="method-detail ">
255
-
256
- <div class="method-heading">
257
- <span class="method-name">text</span><span
258
- class="method-args">()</span>
259
- <span class="method-click-advice">click to toggle source</span>
260
- </div>
261
-
262
-
263
- <div class="method-description">
264
-
265
- <p>The plain text.</p>
266
-
329
+ </div>
267
330
 
268
-
269
- <div class="method-source-code" id="text-source">
270
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 135</span>
271
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">text</span>
272
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw</span>[<span class="ruby-string">'text'</span>]
273
- <span class="ruby-keyword">end</span></pre>
274
- </div><!-- text-source -->
275
-
276
- </div>
331
+ <div id="instance_method_details" class="method_details_list">
332
+ <h2>Instance Method Details</h2>
333
+
334
+
335
+ <div class="method_details first">
336
+ <p class="signature first" id="make_request-instance_method">
337
+
338
+ - (<tt>Object</tt>) <strong>make_request</strong>
339
+
277
340
 
278
-
341
+
342
+ </p><div class="docstring">
343
+ <div class="discussion">
344
+ <p>
345
+ Finds or creates a Request sourced from this DirectMessage.
346
+ </p>
279
347
 
280
-
281
- </div><!-- text-method -->
282
348
 
349
+ </div>
350
+ </div>
351
+ <div class="tags">
352
+
353
+
354
+ </div><table class="source_code">
355
+ <tr>
356
+ <td>
357
+ <pre class="lines">
358
+
359
+
360
+ 150
361
+ 151
362
+ 152</pre>
363
+ </td>
364
+ <td>
365
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 150</span>
366
+
367
+ <span class='kw'>def</span> <span class='id make_request'>make_request</span>
368
+ <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 text'>text</span><span class='rparen'>)</span>
369
+ <span class='kw'>end</span></pre>
370
+ </td>
371
+ </tr>
372
+ </table>
373
+ </div>
283
374
 
284
- <div id="method-i-user" class="method-detail ">
285
-
286
- <div class="method-heading">
287
- <span class="method-name">user</span><span
288
- class="method-args">()</span>
289
- <span class="method-click-advice">click to toggle source</span>
290
- </div>
291
-
375
+ <div class="method_details ">
376
+ <p class="signature " id="text-instance_method">
377
+
378
+ - (<tt>Object</tt>) <strong>text</strong>
379
+
292
380
 
293
- <div class="method-description">
294
-
295
- <p>Finds or creates a <a href="../KnownUser.html">KnownUser</a> connected to
296
- this <a href="DirectMessage.html">DirectMessage</a>.</p>
297
-
381
+
382
+ </p><div class="docstring">
383
+ <div class="discussion">
384
+ <p>
385
+ The plain text.
386
+ </p>
298
387
 
299
-
300
- <div class="method-source-code" id="user-source">
301
- <pre><span class="ruby-comment"># File lib/safubot/twitter.rb, line 140</span>
302
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">user</span>
303
- <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">'sender'</span>][<span class="ruby-string">'screen_name'</span>])
304
- <span class="ruby-keyword">end</span></pre>
305
- </div><!-- user-source -->
306
-
307
- </div>
308
388
 
309
-
389
+ </div>
390
+ </div>
391
+ <div class="tags">
392
+
393
+
394
+ </div><table class="source_code">
395
+ <tr>
396
+ <td>
397
+ <pre class="lines">
398
+
399
+
400
+ 135
401
+ 136
402
+ 137</pre>
403
+ </td>
404
+ <td>
405
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 135</span>
406
+
407
+ <span class='kw'>def</span> <span class='id text'>text</span>
408
+ <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>
409
+ <span class='kw'>end</span></pre>
410
+ </td>
411
+ </tr>
412
+ </table>
413
+ </div>
414
+
415
+ <div class="method_details ">
416
+ <p class="signature " id="user-instance_method">
417
+
418
+ - (<tt>Object</tt>) <strong>user</strong>
419
+
420
+
421
+
422
+ </p><div class="docstring">
423
+ <div class="discussion">
424
+ <p>
425
+ Finds or creates a KnownUser connected to this DirectMessage.
426
+ </p>
310
427
 
311
-
312
- </div><!-- user-method -->
313
428
 
429
+ </div>
430
+ </div>
431
+ <div class="tags">
432
+
433
+
434
+ </div><table class="source_code">
435
+ <tr>
436
+ <td>
437
+ <pre class="lines">
438
+
439
+
440
+ 145
441
+ 146
442
+ 147</pre>
443
+ </td>
444
+ <td>
445
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 145</span>
446
+
447
+ <span class='kw'>def</span> <span class='id user'>user</span>
448
+ <span class='const'>KnownUser</span><span class='period'>.</span><span class='id by_twitter'>by_twitter</span><span class='lparen'>(</span><span class='id username'>username</span><span class='rparen'>)</span>
449
+ <span class='kw'>end</span></pre>
450
+ </td>
451
+ </tr>
452
+ </table>
453
+ </div>
314
454
 
315
- </section><!-- public-instance-method-details -->
455
+ <div class="method_details ">
456
+ <p class="signature " id="username-instance_method">
457
+
458
+ - (<tt>Object</tt>) <strong>username</strong>
316
459
 
317
- </section><!-- 5Buntitled-5D -->
318
460
 
319
- </div><!-- documentation -->
461
+
462
+ </p><div class="docstring">
463
+ <div class="discussion">
464
+ <p>
465
+ Finds the user&#8217;s screen_name.
466
+ </p>
320
467
 
321
468
 
322
- <footer id="validator-badges">
323
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
324
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
325
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
326
- </footer>
469
+ </div>
470
+ </div>
471
+ <div class="tags">
472
+
473
+
474
+ </div><table class="source_code">
475
+ <tr>
476
+ <td>
477
+ <pre class="lines">
478
+
479
+
480
+ 140
481
+ 141
482
+ 142</pre>
483
+ </td>
484
+ <td>
485
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 140</span>
486
+
487
+ <span class='kw'>def</span> <span class='id username'>username</span>
488
+ <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'>sender</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'>screen_name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
489
+ <span class='kw'>end</span></pre>
490
+ </td>
491
+ </tr>
492
+ </table>
493
+ </div>
494
+
495
+ </div>
327
496
 
497
+ </div>
498
+
499
+ <div id="footer">
500
+ Generated on Mon Nov 28 20:20:04 2011 by
501
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
502
+ 0.7.3 (ruby-1.9.2).
503
+ </div>
504
+
505
+ </body>
506
+ </html>