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,298 +1,453 @@
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::XMPP::Message
8
+
9
+ &mdash; Documentation by YARD 0.7.3
10
+
11
+ </title>
6
12
 
7
- <title>Class: Safubot::XMPP::Message</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>
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/xmpp.rb
51
- </ul>
52
- </nav>
22
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
53
25
 
54
-
55
- </div>
56
26
 
57
- <div id="class-metadata">
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
58
32
 
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 (M)</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="../XMPP.html" title="Safubot::XMPP (module)">XMPP</a></span></span>
38
+ &raquo;
39
+ <span class="title">Message</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>
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: Safubot::XMPP::Message
60
+
61
+
62
+
63
+ </h1>
82
64
 
83
- <ul class="link-list">
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::XMPP::Message</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
84
80
 
85
- <li><a href="#method-c-from">::from</a>
81
+
82
+
86
83
 
87
- <li><a href="#method-i-make_request">#make_request</a>
84
+
88
85
 
89
- <li><a href="#method-i-user">#user</a>
86
+ <dt class="r2">Includes:</dt>
87
+ <dd class="r2">MongoMapper::Document</dd>
88
+
90
89
 
91
- </ul>
92
- </nav>
90
+
91
+
92
+
93
+ <dt class="r1 last">Defined in:</dt>
94
+ <dd class="r1 last">lib/safubot/xmpp.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
+ A Message is a Request source representing a single XMPP chat stanza.
103
+ </p>
104
+
93
105
 
94
106
  </div>
107
+ </div>
108
+ <div class="tags">
109
+
95
110
 
96
- <div id="project-metadata">
97
- <nav id="fileindex-section" class="section project-section">
98
- <h3 class="section-header">Pages</h3>
111
+ </div>
99
112
 
100
- <ul>
101
113
 
102
- <li class="file"><a href="../../Gemfile.html">Gemfile</a>
114
+
115
+
103
116
 
104
- <li class="file"><a href="../../Rakefile.html">Rakefile</a>
117
+
105
118
 
106
- </ul>
107
- </nav>
119
+ <h2>
120
+ Class Method Summary
121
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
122
+ </h2>
108
123
 
109
- <nav id="classindex-section" class="section project-section">
110
- <h3 class="section-header">Class and Module Index</h3>
124
+ <ul class="summary">
125
+
126
+ <li class="public ">
127
+ <span class="summary_signature">
128
+
129
+ <a href="#from-class_method" title="from (class method)">+ (Object) <strong>from</strong>(raw) </a>
130
+
111
131
 
112
- <ul class="link-list">
113
-
114
- <li><a href="../../Safubot.html">Safubot</a>
132
+
133
+ </span>
115
134
 
116
- <li><a href="../../Safubot/Bot.html">Safubot::Bot</a>
117
135
 
118
- <li><a href="../../Safubot/Evented.html">Safubot::Evented</a>
119
136
 
120
- <li><a href="../../Safubot/KnownUser.html">Safubot::KnownUser</a>
121
137
 
122
- <li><a href="../../Safubot/Log.html">Safubot::Log</a>
123
138
 
124
- <li><a href="../../Safubot/Query.html">Safubot::Query</a>
125
139
 
126
- <li><a href="../../Safubot/Request.html">Safubot::Request</a>
140
+
127
141
 
128
- <li><a href="../../Safubot/Response.html">Safubot::Response</a>
142
+ <span class="summary_desc"><div class='inline'><p>
143
+ Creates a new Message.
144
+ </p>
145
+ </div></span>
129
146
 
130
- <li><a href="../../Safubot/Test.html">Safubot::Test</a>
147
+ </li>
148
+
149
+
150
+ </ul>
131
151
 
132
- <li><a href="../../Safubot/Twitter.html">Safubot::Twitter</a>
152
+ <h2>
153
+ Instance Method Summary
154
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
155
+ </h2>
156
+
157
+ <ul class="summary">
158
+
159
+ <li class="public ">
160
+ <span class="summary_signature">
161
+
162
+ <a href="#make_request-instance_method" title="#make_request (instance method)">- (Object) <strong>make_request</strong> </a>
163
+
164
+
165
+
166
+ </span>
133
167
 
134
- <li><a href="../../Safubot/Twitter/Bot.html">Safubot::Twitter::Bot</a>
135
168
 
136
- <li><a href="../../Safubot/Twitter/DirectMessage.html">Safubot::Twitter::DirectMessage</a>
137
169
 
138
- <li><a href="../../Safubot/Twitter/Tweet.html">Safubot::Twitter::Tweet</a>
139
170
 
140
- <li><a href="../../Safubot/XMPP.html">Safubot::XMPP</a>
141
171
 
142
- <li><a href="../../Safubot/XMPP/Bot.html">Safubot::XMPP::Bot</a>
143
172
 
144
- <li><a href="../../Safubot/XMPP/Message.html">Safubot::XMPP::Message</a>
173
+
145
174
 
146
- <li><a href="../../Object.html">Object</a>
175
+ <span class="summary_desc"><div class='inline'><p>
176
+ Retrieves or creates an associated Request.
177
+ </p>
178
+ </div></span>
147
179
 
148
- </ul>
149
- </nav>
180
+ </li>
150
181
 
151
- </div>
152
- </nav>
153
-
154
- <div id="documentation">
155
- <h1 class="class">class Safubot::XMPP::Message</h1>
156
-
157
- <div id="description" class="description">
182
+
183
+ <li class="public ">
184
+ <span class="summary_signature">
185
+
186
+ <a href="#user-instance_method" title="#user (instance method)">- (Object) <strong>user</strong> </a>
158
187
 
159
- <p>A <a href="Message.html">Message</a> is a <a
160
- href="../Request.html">Request</a> source representing a single <a
161
- href="../XMPP.html">XMPP</a> chat stanza.</p>
162
-
163
- </div><!-- description -->
164
188
 
189
+
190
+ </span>
191
+
192
+
193
+
165
194
 
166
195
 
167
196
 
168
- <section id="5Buntitled-5D" class="documentation-section">
169
-
170
197
 
171
-
198
+
199
+ <span class="summary_desc"><div class='inline'><p>
200
+ Retrieves the KnownUser associated with this Message.
201
+ </p>
202
+ </div></span>
203
+
204
+ </li>
172
205
 
206
+
207
+ <li class="public ">
208
+ <span class="summary_signature">
173
209
 
174
-
210
+ <a href="#username-instance_method" title="#username (instance method)">- (Object) <strong>username</strong> </a>
175
211
 
176
212
 
177
- <!-- Methods -->
178
213
 
179
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
180
- <h3 class="section-header">Public Class Methods</h3>
214
+ </span>
215
+
216
+
217
+
218
+
219
+
220
+
181
221
 
182
-
183
- <div id="method-c-from" class="method-detail ">
184
-
185
- <div class="method-heading">
186
- <span class="method-name">from</span><span
187
- class="method-args">(raw)</span>
188
- <span class="method-click-advice">click to toggle source</span>
189
- </div>
190
-
191
-
192
- <div class="method-description">
193
-
194
- <p>Creates a new <a href="Message.html">Message</a>. @param raw The Blather
195
- stanza from which to source data.</p>
196
-
222
+
223
+ <span class="summary_desc"><div class='inline'><p>
224
+ Retrieves the sender&#8217;s username from the JID.
225
+ </p>
226
+ </div></span>
227
+
228
+ </li>
197
229
 
198
-
199
- <div class="method-source-code" id="from-source">
200
- <pre><span class="ruby-comment"># File lib/safubot/xmpp.rb, line 42</span>
201
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">from</span>(<span class="ruby-identifier">raw</span>)
202
- <span class="ruby-constant">Message</span>.<span class="ruby-identifier">create</span>({
203
- <span class="ruby-value">:xml</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">raw</span>.<span class="ruby-identifier">to_xml</span>,
204
- <span class="ruby-value">:text</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">raw</span>.<span class="ruby-identifier">body</span>.<span class="ruby-identifier">strip</span>,
205
- <span class="ruby-value">:to</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">raw</span>.<span class="ruby-identifier">to</span>,
206
- <span class="ruby-value">:from</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">raw</span>.<span class="ruby-identifier">from</span>
207
- })
208
- <span class="ruby-keyword">end</span></pre>
209
- </div><!-- from-source -->
210
-
211
- </div>
230
+
231
+ </ul>
232
+
212
233
 
213
-
214
234
 
215
-
216
- </div><!-- from-method -->
235
+
217
236
 
237
+ <div id="class_method_details" class="method_details_list">
238
+ <h2>Class Method Details</h2>
239
+
218
240
 
219
- </section><!-- public-class-method-details -->
241
+ <div class="method_details first">
242
+ <p class="signature first" id="from-class_method">
220
243
 
221
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
222
- <h3 class="section-header">Public Instance Methods</h3>
244
+ + (<tt>Object</tt>) <strong>from</strong>(raw)
245
+
246
+
247
+
248
+ </p><div class="docstring">
249
+ <div class="discussion">
250
+ <p>
251
+ Creates a new Message.
252
+ </p>
223
253
 
254
+
255
+ </div>
256
+ </div>
257
+ <div class="tags">
258
+ <h3>Parameters:</h3>
259
+ <ul class="param">
260
+
261
+ <li>
262
+
263
+ <span class='name'>raw</span>
264
+
265
+
266
+ <span class='type'></span>
267
+
268
+
269
+
270
+ &mdash;
271
+ <div class='inline'><p>
272
+ The Blather stanza from which to source data.
273
+ </p>
274
+ </div>
275
+
276
+ </li>
277
+
278
+ </ul>
279
+
280
+
281
+ </div><table class="source_code">
282
+ <tr>
283
+ <td>
284
+ <pre class="lines">
285
+
286
+
287
+ 43
288
+ 44
289
+ 45
290
+ 46
291
+ 47
292
+ 48
293
+ 49
294
+ 50
295
+ 51
296
+ 52</pre>
297
+ </td>
298
+ <td>
299
+ <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 43</span>
300
+
301
+ <span class='kw'>def</span> <span class='id from'>from</span><span class='lparen'>(</span><span class='id raw'>raw</span><span class='rparen'>)</span>
302
+ <span class='const'>Message</span><span class='period'>.</span><span class='id find_by_xmpp_id'>find_by_xmpp_id</span><span class='lparen'>(</span><span class='id raw'>raw</span><span class='period'>.</span><span class='id id'>id</span><span class='rparen'>)</span> <span class='op'>||</span>
303
+ <span class='const'>Message</span><span class='period'>.</span><span class='id create'>create</span><span class='lparen'>(</span><span class='lbrace'>{</span>
304
+ <span class='symbol'>:xml</span> <span class='op'>=&gt;</span> <span class='id raw'>raw</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='comma'>,</span>
305
+ <span class='symbol'>:xmpp_id</span> <span class='op'>=&gt;</span> <span class='id raw'>raw</span><span class='period'>.</span><span class='id id'>id</span><span class='comma'>,</span>
306
+ <span class='symbol'>:text</span> <span class='op'>=&gt;</span> <span class='id raw'>raw</span><span class='period'>.</span><span class='id body'>body</span><span class='period'>.</span><span class='id strip'>strip</span><span class='comma'>,</span>
307
+ <span class='symbol'>:to</span> <span class='op'>=&gt;</span> <span class='id raw'>raw</span><span class='period'>.</span><span class='id to'>to</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='comma'>,</span>
308
+ <span class='symbol'>:from</span> <span class='op'>=&gt;</span> <span class='id raw'>raw</span><span class='period'>.</span><span class='id from'>from</span><span class='period'>.</span><span class='id to_s'>to_s</span>
309
+ <span class='rbrace'>}</span><span class='rparen'>)</span>
310
+ <span class='kw'>end</span></pre>
311
+ </td>
312
+ </tr>
313
+ </table>
314
+ </div>
224
315
 
225
- <div id="method-i-make_request" class="method-detail ">
226
-
227
- <div class="method-heading">
228
- <span class="method-name">make_request</span><span
229
- class="method-args">()</span>
230
- <span class="method-click-advice">click to toggle source</span>
231
- </div>
232
-
233
-
234
- <div class="method-description">
235
-
236
- <p>Retrieves or creates an associated <a href="../Request.html">Request</a>.</p>
237
-
316
+ </div>
238
317
 
239
-
240
- <div class="method-source-code" id="make_request-source">
241
- <pre><span class="ruby-comment"># File lib/safubot/xmpp.rb, line 58</span>
242
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">make_request</span>
243
- <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>)
244
- <span class="ruby-keyword">end</span></pre>
245
- </div><!-- make_request-source -->
246
-
247
- </div>
318
+ <div id="instance_method_details" class="method_details_list">
319
+ <h2>Instance Method Details</h2>
320
+
321
+
322
+ <div class="method_details first">
323
+ <p class="signature first" id="make_request-instance_method">
324
+
325
+ - (<tt>Object</tt>) <strong>make_request</strong>
326
+
248
327
 
249
-
328
+
329
+ </p><div class="docstring">
330
+ <div class="discussion">
331
+ <p>
332
+ Retrieves or creates an associated Request.
333
+ </p>
250
334
 
251
-
252
- </div><!-- make_request-method -->
253
335
 
336
+ </div>
337
+ </div>
338
+ <div class="tags">
339
+
340
+
341
+ </div><table class="source_code">
342
+ <tr>
343
+ <td>
344
+ <pre class="lines">
345
+
346
+
347
+ 66
348
+ 67
349
+ 68</pre>
350
+ </td>
351
+ <td>
352
+ <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 66</span>
353
+
354
+ <span class='kw'>def</span> <span class='id make_request'>make_request</span>
355
+ <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>
356
+ <span class='kw'>end</span></pre>
357
+ </td>
358
+ </tr>
359
+ </table>
360
+ </div>
254
361
 
255
- <div id="method-i-user" class="method-detail ">
256
-
257
- <div class="method-heading">
258
- <span class="method-name">user</span><span
259
- class="method-args">()</span>
260
- <span class="method-click-advice">click to toggle source</span>
261
- </div>
262
-
263
-
264
- <div class="method-description">
265
-
266
- <p>Retrieves the <a href="../KnownUser.html">KnownUser</a> associated with
267
- this <a href="Message.html">Message</a>.</p>
268
-
269
-
270
-
271
- <div class="method-source-code" id="user-source">
272
- <pre><span class="ruby-comment"># File lib/safubot/xmpp.rb, line 53</span>
273
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">user</span>
274
- <span class="ruby-constant">KnownUser</span>.<span class="ruby-identifier">by_xmpp</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">from</span>)
275
- <span class="ruby-keyword">end</span></pre>
276
- </div><!-- user-source -->
277
-
278
- </div>
362
+ <div class="method_details ">
363
+ <p class="signature " id="user-instance_method">
364
+
365
+ - (<tt>Object</tt>) <strong>user</strong>
366
+
279
367
 
280
-
368
+
369
+ </p><div class="docstring">
370
+ <div class="discussion">
371
+ <p>
372
+ Retrieves the KnownUser associated with this Message.
373
+ </p>
281
374
 
282
-
283
- </div><!-- user-method -->
284
375
 
376
+ </div>
377
+ </div>
378
+ <div class="tags">
379
+
380
+
381
+ </div><table class="source_code">
382
+ <tr>
383
+ <td>
384
+ <pre class="lines">
385
+
386
+
387
+ 61
388
+ 62
389
+ 63</pre>
390
+ </td>
391
+ <td>
392
+ <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 61</span>
393
+
394
+ <span class='kw'>def</span> <span class='id user'>user</span>
395
+ <span class='const'>KnownUser</span><span class='period'>.</span><span class='id by_xmpp'>by_xmpp</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id from'>from</span><span class='rparen'>)</span>
396
+ <span class='kw'>end</span></pre>
397
+ </td>
398
+ </tr>
399
+ </table>
400
+ </div>
285
401
 
286
- </section><!-- public-instance-method-details -->
402
+ <div class="method_details ">
403
+ <p class="signature " id="username-instance_method">
404
+
405
+ - (<tt>Object</tt>) <strong>username</strong>
287
406
 
288
- </section><!-- 5Buntitled-5D -->
289
407
 
290
- </div><!-- documentation -->
408
+
409
+ </p><div class="docstring">
410
+ <div class="discussion">
411
+ <p>
412
+ Retrieves the sender&#8217;s username from the JID.
413
+ </p>
291
414
 
292
415
 
293
- <footer id="validator-badges">
294
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
295
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
296
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
297
- </footer>
416
+ </div>
417
+ </div>
418
+ <div class="tags">
419
+
420
+
421
+ </div><table class="source_code">
422
+ <tr>
423
+ <td>
424
+ <pre class="lines">
425
+
426
+
427
+ 56
428
+ 57
429
+ 58</pre>
430
+ </td>
431
+ <td>
432
+ <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 56</span>
433
+
434
+ <span class='kw'>def</span> <span class='id username'>username</span>
435
+ <span class='kw'>self</span><span class='period'>.</span><span class='id from'>from</span><span class='period'>.</span><span class='id split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>@</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
436
+ <span class='kw'>end</span></pre>
437
+ </td>
438
+ </tr>
439
+ </table>
440
+ </div>
441
+
442
+ </div>
298
443
 
444
+ </div>
445
+
446
+ <div id="footer">
447
+ Generated on Mon Nov 28 20:20:03 2011 by
448
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
449
+ 0.7.3 (ruby-1.9.2).
450
+ </div>
451
+
452
+ </body>
453
+ </html>