magpie 0.8.8 → 0.8.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/Rakefile +1 -1
- data/doc/Magpie.html +360 -0
- data/doc/Magpie/Alipay.html +257 -0
- data/doc/Magpie/AlipayModel.html +1770 -0
- data/doc/Magpie/Chinabank.html +257 -0
- data/doc/Magpie/ChinabankModel.html +1030 -0
- data/doc/Magpie/Dung.html +673 -0
- data/doc/Magpie/Goose.html +420 -0
- data/doc/Magpie/Goose/ClassMethods.html +467 -0
- data/doc/Magpie/Mothlog.html +239 -0
- data/doc/Magpie/Mouse.html +363 -0
- data/doc/Magpie/Mouse/ClassMethods.html +225 -0
- data/doc/Magpie/Mouse/MouseError.html +100 -0
- data/doc/Magpie/Rubber.html +160 -0
- data/doc/Magpie/Server.html +253 -0
- data/doc/Magpie/Server/Options.html +261 -0
- data/doc/Magpie/Snake.html +744 -0
- data/doc/Magpie/Tenpay.html +259 -0
- data/doc/Magpie/TenpayModel.html +1542 -0
- data/doc/Magpie/Utils.html +888 -0
- data/doc/_index.html +295 -0
- data/doc/class_list.html +36 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +53 -0
- data/doc/css/style.css +307 -0
- data/doc/file.README.html +239 -0
- data/doc/file_list.html +38 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +239 -0
- data/doc/js/app.js +202 -0
- data/doc/js/full_list.js +149 -0
- data/doc/js/jquery.js +154 -0
- data/doc/method_list.html +1003 -0
- data/doc/top-level-namespace.html +88 -0
- data/lib/apps.rb +1 -1
- data/lib/magpie.rb +1 -1
- data/lib/magpie/server.rb +2 -0
- data/magpie.gemspec +43 -1
- data/static/images/error.gif +0 -0
- data/static/images/q2.gif +0 -0
- data/test/test.log +2182 -0
- metadata +39 -3
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ Rake::TestTask.new do |t|
|
|
6
6
|
end
|
7
7
|
|
8
8
|
task :dir_files do
|
9
|
-
files = Dir["{bin/*,lib/*,lib/magpie/**/*,lib/models/*,lib/middles/*,lib/views/**/*,test/**/*}"] -
|
9
|
+
files = Dir["{bin/*,static/**/*,doc/**/*,lib/*,lib/magpie/**/*,lib/models/*,lib/middles/*,lib/views/**/*,test/**/*}"] -
|
10
10
|
%w(lib/magpie.yml lib/mag) +
|
11
11
|
%w(COPYING magpie.gemspec README.md Rakefile )
|
12
12
|
puts files.join("\n")
|
data/doc/Magpie.html
ADDED
@@ -0,0 +1,360 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>Module: Magpie</title>
|
7
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<script type="text/javascript" charset="utf-8">
|
20
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
+
</script>
|
22
|
+
|
23
|
+
<div id="header">
|
24
|
+
<div id="menu">
|
25
|
+
|
26
|
+
<a href="_index.html">Index (M)</a> »
|
27
|
+
|
28
|
+
|
29
|
+
<span class="title">Magpie</span>
|
30
|
+
|
31
|
+
|
32
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="search">
|
36
|
+
<a id="class_list_link" href="#">Class List</a>
|
37
|
+
<a id="method_list_link" href="#">Method List</a>
|
38
|
+
<a id ="file_list_link" href="#">File List</a>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div class="clear"></div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<iframe id="search_frame"></iframe>
|
45
|
+
|
46
|
+
<div id="content"><h1>Module: Magpie
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
</h1>
|
51
|
+
|
52
|
+
<dl class="box">
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
<dt class="r1 last">Defined in:</dt>
|
62
|
+
<dd class="r1 last">lib/models/dung.rb<span class="defines">,<br />
|
63
|
+
lib/apps.rb,<br /> lib/magpie.rb,<br /> lib/magpie/utils.rb,<br /> lib/magpie/mouse.rb,<br /> lib/magpie/goose.rb,<br /> lib/middles/snake.rb,<br /> lib/magpie/rubber.rb,<br /> lib/magpie/server.rb,<br /> lib/models/alipay.rb,<br /> lib/models/tenpay.rb,<br /> lib/middles/alipay.rb,<br /> lib/middles/tenpay.rb,<br /> lib/models/chinabank.rb,<br /> lib/middles/chinabank.rb,<br /> lib/middles/mothlog-bat.rb</span>
|
64
|
+
</dd>
|
65
|
+
|
66
|
+
</dl>
|
67
|
+
<div class="clear"></div>
|
68
|
+
|
69
|
+
<h2>Overview</h2><div class="docstring">
|
70
|
+
<div class="discussion">
|
71
|
+
<p>
|
72
|
+
-*- coding: utf-8 -*-
|
73
|
+
</p>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
<div class="tags">
|
79
|
+
|
80
|
+
</div><h2>Defined Under Namespace</h2>
|
81
|
+
<p class="children">
|
82
|
+
|
83
|
+
|
84
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Magpie/Goose.html" title="Magpie::Goose (module)">Goose</a></span>, <span class='object_link'><a href="Magpie/Mouse.html" title="Magpie::Mouse (module)">Mouse</a></span>, <span class='object_link'><a href="Magpie/Rubber.html" title="Magpie::Rubber (module)">Rubber</a></span>, <span class='object_link'><a href="Magpie/Utils.html" title="Magpie::Utils (module)">Utils</a></span>
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Magpie/Alipay.html" title="Magpie::Alipay (class)">Alipay</a></span>, <span class='object_link'><a href="Magpie/AlipayModel.html" title="Magpie::AlipayModel (class)">AlipayModel</a></span>, <span class='object_link'><a href="Magpie/Chinabank.html" title="Magpie::Chinabank (class)">Chinabank</a></span>, <span class='object_link'><a href="Magpie/ChinabankModel.html" title="Magpie::ChinabankModel (class)">ChinabankModel</a></span>, <span class='object_link'><a href="Magpie/Dung.html" title="Magpie::Dung (class)">Dung</a></span>, <span class='object_link'><a href="Magpie/Mothlog.html" title="Magpie::Mothlog (class)">Mothlog</a></span>, <span class='object_link'><a href="Magpie/Server.html" title="Magpie::Server (class)">Server</a></span>, <span class='object_link'><a href="Magpie/Snake.html" title="Magpie::Snake (class)">Snake</a></span>, <span class='object_link'><a href="Magpie/Tenpay.html" title="Magpie::Tenpay (class)">Tenpay</a></span>, <span class='object_link'><a href="Magpie/TenpayModel.html" title="Magpie::TenpayModel (class)">TenpayModel</a></span>
|
89
|
+
|
90
|
+
|
91
|
+
</p>
|
92
|
+
|
93
|
+
<h2>Constant Summary</h2>
|
94
|
+
|
95
|
+
<dl class="constants">
|
96
|
+
|
97
|
+
<dt id="BIRD_APP-constant" class="">BIRD_APP =
|
98
|
+
|
99
|
+
</dt>
|
100
|
+
<dd><pre class="code"><span class='Rack constant id'>Rack</span><span class='colon2 op'>::</span><span class='Builder constant id'>Builder</span><span class='dot token'>.</span><span class='new identifier id'>new</span> <span class='lbrace token'>{</span>
|
101
|
+
</pre></dd>
|
102
|
+
|
103
|
+
<dt id="SNAKE_APP-constant" class="">SNAKE_APP =
|
104
|
+
|
105
|
+
</dt>
|
106
|
+
<dd><pre class="code"><span class='Rack constant id'>Rack</span><span class='colon2 op'>::</span><span class='Builder constant id'>Builder</span><span class='dot token'>.</span><span class='new identifier id'>new</span> <span class='lbrace token'>{</span>
|
107
|
+
</pre></dd>
|
108
|
+
|
109
|
+
<dt id="VERSION-constant" class="">VERSION =
|
110
|
+
|
111
|
+
</dt>
|
112
|
+
<dd><pre class="code"><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='comma token'>,</span> <span class='integer val'>8</span><span class='comma token'>,</span> <span class='integer val'>8</span><span class='rbrack token'>]</span>
|
113
|
+
</pre></dd>
|
114
|
+
|
115
|
+
<dt id="FORMAT_ERRORS-constant" class="">FORMAT_ERRORS =
|
116
|
+
|
117
|
+
</dt>
|
118
|
+
<dd><pre class="code"><span class='string val'>%{%s : "%s" \n}</span>
|
119
|
+
</pre></dd>
|
120
|
+
|
121
|
+
<dt id="FORMAT_NOTIFY-constant" class="">FORMAT_NOTIFY =
|
122
|
+
|
123
|
+
</dt>
|
124
|
+
<dd><pre class="code"><span class='string val'>%{Notify to [%s] %s at[%s]\n Parameters:%s\n\nBusiness result:%s\n\n}</span>
|
125
|
+
</pre></dd>
|
126
|
+
|
127
|
+
</dl>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<h2>Class Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
132
|
+
<ul class="summary">
|
133
|
+
|
134
|
+
<li class="public ">
|
135
|
+
<span class="summary_signature">
|
136
|
+
|
137
|
+
<a href="#logger-class_method" title="logger (class method)">+ (Object) <strong>logger</strong> </a>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
</span>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<span class="summary_desc"><div class='inline'><p>
|
154
|
+
Returns the value of attribute logger.
|
155
|
+
</p>
|
156
|
+
</div></span>
|
157
|
+
|
158
|
+
</li>
|
159
|
+
|
160
|
+
|
161
|
+
<li class="public ">
|
162
|
+
<span class="summary_signature">
|
163
|
+
|
164
|
+
<a href="#yml_db-class_method" title="yml_db (class method)">+ (Object) <strong>yml_db</strong> </a>
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
</span>
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
<span class="summary_desc"><div class='inline'><p>
|
181
|
+
Returns the value of attribute yml_db.
|
182
|
+
</p>
|
183
|
+
</div></span>
|
184
|
+
|
185
|
+
</li>
|
186
|
+
|
187
|
+
|
188
|
+
</ul>
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
<h2>
|
193
|
+
Class Method Summary
|
194
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
195
|
+
</h2>
|
196
|
+
|
197
|
+
<ul class="summary">
|
198
|
+
|
199
|
+
<li class="public ">
|
200
|
+
<span class="summary_signature">
|
201
|
+
|
202
|
+
<a href="#version-class_method" title="version (class method)">+ (Object) <strong>version</strong> </a>
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
</span>
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
216
|
+
|
217
|
+
</li>
|
218
|
+
|
219
|
+
|
220
|
+
</ul>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
<div id="class_attr_details" class="attr_details">
|
225
|
+
<h2>Class Attribute Details</h2>
|
226
|
+
|
227
|
+
|
228
|
+
<span id="logger=-class_method"></span>
|
229
|
+
<span id="logger-class_method"></span>
|
230
|
+
<div class="method_details first">
|
231
|
+
<p class="signature first" id="logger-class_method">
|
232
|
+
|
233
|
+
+ (<tt>Object</tt>) <strong>logger</strong>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
</p><div class="docstring">
|
238
|
+
<div class="discussion">
|
239
|
+
<p>
|
240
|
+
Returns the value of attribute logger
|
241
|
+
</p>
|
242
|
+
|
243
|
+
|
244
|
+
</div>
|
245
|
+
</div>
|
246
|
+
<div class="tags">
|
247
|
+
|
248
|
+
</div><table class="source_code">
|
249
|
+
<tr>
|
250
|
+
<td>
|
251
|
+
<pre class="lines">
|
252
|
+
|
253
|
+
|
254
|
+
15
|
255
|
+
16
|
256
|
+
17</pre>
|
257
|
+
</td>
|
258
|
+
<td>
|
259
|
+
<pre class="code"><span class="info file"># File 'lib/magpie.rb', line 15</span>
|
260
|
+
|
261
|
+
<span class='def def kw'>def</span> <span class='logger identifier id'>logger</span>
|
262
|
+
<span class='@logger ivar id'>@logger</span>
|
263
|
+
<span class='end end kw'>end</span>
|
264
|
+
</pre>
|
265
|
+
</td>
|
266
|
+
</tr>
|
267
|
+
</table>
|
268
|
+
</div>
|
269
|
+
|
270
|
+
|
271
|
+
<span id="yml_db=-class_method"></span>
|
272
|
+
<span id="yml_db-class_method"></span>
|
273
|
+
<div class="method_details ">
|
274
|
+
<p class="signature " id="yml_db-class_method">
|
275
|
+
|
276
|
+
+ (<tt>Object</tt>) <strong>yml_db</strong>
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
</p><div class="docstring">
|
281
|
+
<div class="discussion">
|
282
|
+
<p>
|
283
|
+
Returns the value of attribute yml_db
|
284
|
+
</p>
|
285
|
+
|
286
|
+
|
287
|
+
</div>
|
288
|
+
</div>
|
289
|
+
<div class="tags">
|
290
|
+
|
291
|
+
</div><table class="source_code">
|
292
|
+
<tr>
|
293
|
+
<td>
|
294
|
+
<pre class="lines">
|
295
|
+
|
296
|
+
|
297
|
+
14
|
298
|
+
15
|
299
|
+
16</pre>
|
300
|
+
</td>
|
301
|
+
<td>
|
302
|
+
<pre class="code"><span class="info file"># File 'lib/magpie.rb', line 14</span>
|
303
|
+
|
304
|
+
<span class='def def kw'>def</span> <span class='yml_db identifier id'>yml_db</span>
|
305
|
+
<span class='@yml_db ivar id'>@yml_db</span>
|
306
|
+
<span class='end end kw'>end</span>
|
307
|
+
</pre>
|
308
|
+
</td>
|
309
|
+
</tr>
|
310
|
+
</table>
|
311
|
+
</div>
|
312
|
+
|
313
|
+
</div>
|
314
|
+
|
315
|
+
|
316
|
+
<div id="class_method_details" class="method_details_list">
|
317
|
+
<h2>Class Method Details</h2>
|
318
|
+
|
319
|
+
|
320
|
+
<div class="method_details first">
|
321
|
+
<p class="signature first" id="version-class_method">
|
322
|
+
|
323
|
+
+ (<tt>Object</tt>) <strong>version</strong>
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
</p><table class="source_code">
|
328
|
+
<tr>
|
329
|
+
<td>
|
330
|
+
<pre class="lines">
|
331
|
+
|
332
|
+
|
333
|
+
17
|
334
|
+
18
|
335
|
+
19</pre>
|
336
|
+
</td>
|
337
|
+
<td>
|
338
|
+
<pre class="code"><span class="info file"># File 'lib/magpie.rb', line 17</span>
|
339
|
+
|
340
|
+
<span class='def def kw'>def</span> <span class='version identifier id'>version</span>
|
341
|
+
<span class='VERSION constant id'>VERSION</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='string val'>"."</span><span class='rparen token'>)</span>
|
342
|
+
<span class='end end kw'>end</span>
|
343
|
+
</pre>
|
344
|
+
</td>
|
345
|
+
</tr>
|
346
|
+
</table>
|
347
|
+
</div>
|
348
|
+
|
349
|
+
</div>
|
350
|
+
|
351
|
+
</div>
|
352
|
+
|
353
|
+
<div id="footer">
|
354
|
+
Generated on Mon Nov 8 16:21:43 2010 by
|
355
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
356
|
+
0.6.1 (ruby-1.8.7).
|
357
|
+
</div>
|
358
|
+
|
359
|
+
</body>
|
360
|
+
</html>
|
@@ -0,0 +1,257 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>Class: Magpie::Alipay</title>
|
7
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '..';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<script type="text/javascript" charset="utf-8">
|
20
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
+
</script>
|
22
|
+
|
23
|
+
<div id="header">
|
24
|
+
<div id="menu">
|
25
|
+
|
26
|
+
<a href="../_index.html">Index (A)</a> »
|
27
|
+
<span class='title'><span class='object_link'><a href="../Magpie.html" title="Magpie (module)">Magpie</a></span></span>
|
28
|
+
»
|
29
|
+
<span class="title">Alipay</span>
|
30
|
+
|
31
|
+
|
32
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="search">
|
36
|
+
<a id="class_list_link" href="#">Class List</a>
|
37
|
+
<a id="method_list_link" href="#">Method List</a>
|
38
|
+
<a id ="file_list_link" href="#">File List</a>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div class="clear"></div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<iframe id="search_frame"></iframe>
|
45
|
+
|
46
|
+
<div id="content"><h1>Class: Magpie::Alipay
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
</h1>
|
51
|
+
|
52
|
+
<dl class="box">
|
53
|
+
|
54
|
+
<dt class="r1">Inherits:</dt>
|
55
|
+
<dd class="r1">
|
56
|
+
<span class="inheritName">Object</span>
|
57
|
+
|
58
|
+
<ul class="fullTree">
|
59
|
+
<li>Object</li>
|
60
|
+
|
61
|
+
<li class="next">Magpie::Alipay</li>
|
62
|
+
|
63
|
+
</ul>
|
64
|
+
<a href="#" class="inheritanceTree">show all</a>
|
65
|
+
|
66
|
+
</dd>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<dt class="r2">Includes:</dt>
|
74
|
+
<dd class="r2"><span class='object_link'><a href="Utils.html" title="Magpie::Utils (module)">Utils</a></span></dd>
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<dt class="r1 last">Defined in:</dt>
|
81
|
+
<dd class="r1 last">lib/middles/alipay.rb</dd>
|
82
|
+
|
83
|
+
</dl>
|
84
|
+
<div class="clear"></div>
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
<h2>
|
95
|
+
Instance Method Summary
|
96
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
97
|
+
</h2>
|
98
|
+
|
99
|
+
<ul class="summary">
|
100
|
+
|
101
|
+
<li class="public ">
|
102
|
+
<span class="summary_signature">
|
103
|
+
|
104
|
+
<a href="#call-instance_method" title="#call (instance method)">- (Object) <strong>call</strong>(env) </a>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
</span>
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
118
|
+
|
119
|
+
</li>
|
120
|
+
|
121
|
+
|
122
|
+
<li class="public ">
|
123
|
+
<span class="summary_signature">
|
124
|
+
|
125
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Alipay) <strong>initialize</strong>(app, pay_gateway = "https://www.alipay.com/cooperate/gateway.do") </a>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
</span>
|
130
|
+
|
131
|
+
<span class="note title constructor">constructor</span>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
<span class="summary_desc"><div class='inline'><p>
|
141
|
+
A new instance of Alipay.
|
142
|
+
</p>
|
143
|
+
</div></span>
|
144
|
+
|
145
|
+
</li>
|
146
|
+
|
147
|
+
|
148
|
+
</ul>
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Utils.html" title="Magpie::Utils (module)">Utils</a></span></h3>
|
160
|
+
<p class="inherited"><span class='object_link'><a href="Utils.html#build_xml-instance_method" title="Magpie::Utils#build_xml (method)">#build_xml</a></span>, <span class='object_link'><a href="Utils.html#dig-instance_method" title="Magpie::Utils#dig (method)">#dig</a></span>, <span class='object_link'><a href="Utils.html#get_notify_res-instance_method" title="Magpie::Utils#get_notify_res (method)">#get_notify_res</a></span>, <span class='object_link'><a href="Utils.html#get_query-instance_method" title="Magpie::Utils#get_query (method)">#get_query</a></span>, <span class='object_link'><a href="Utils.html#get_xml_body-instance_method" title="Magpie::Utils#get_xml_body (method)">#get_xml_body</a></span>, <span class='object_link'><a href="Utils.html#hash_to_xml-instance_method" title="Magpie::Utils#hash_to_xml (method)">#hash_to_xml</a></span>, <span class='object_link'><a href="Utils.html#log_errors-instance_method" title="Magpie::Utils#log_errors (method)">#log_errors</a></span>, <span class='object_link'><a href="Utils.html#log_notify-instance_method" title="Magpie::Utils#log_notify (method)">#log_notify</a></span>, <span class='object_link'><a href="Utils.html#post_query-instance_method" title="Magpie::Utils#post_query (method)">#post_query</a></span>, <span class='object_link'><a href="Utils.html#send_notify-instance_method" title="Magpie::Utils#send_notify (method)">#send_notify</a></span>, <span class='object_link'><a href="Utils.html#send_req_to-instance_method" title="Magpie::Utils#send_req_to (method)">#send_req_to</a></span>, <span class='object_link'><a href="Utils.html#start_http-instance_method" title="Magpie::Utils#start_http (method)">#start_http</a></span></p>
|
161
|
+
<div id="constructor_details" class="method_details_list">
|
162
|
+
<h2>Constructor Details</h2>
|
163
|
+
|
164
|
+
<div class="method_details first">
|
165
|
+
<p class="signature first" id="initialize-instance_method">
|
166
|
+
|
167
|
+
- (<tt><span class='object_link'><a href="" title="Magpie::Alipay (class)">Alipay</a></span></tt>) <strong>initialize</strong>(app, pay_gateway = "https://www.alipay.com/cooperate/gateway.do")
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
</p><div class="docstring">
|
172
|
+
<div class="discussion">
|
173
|
+
<p>
|
174
|
+
A new instance of Alipay
|
175
|
+
</p>
|
176
|
+
|
177
|
+
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
<div class="tags">
|
181
|
+
|
182
|
+
</div><table class="source_code">
|
183
|
+
<tr>
|
184
|
+
<td>
|
185
|
+
<pre class="lines">
|
186
|
+
|
187
|
+
|
188
|
+
9
|
189
|
+
10
|
190
|
+
11
|
191
|
+
12
|
192
|
+
13</pre>
|
193
|
+
</td>
|
194
|
+
<td>
|
195
|
+
<pre class="code"><span class="info file"># File 'lib/middles/alipay.rb', line 9</span>
|
196
|
+
|
197
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='app identifier id'>app</span><span class='comma token'>,</span> <span class='pay_gateway identifier id'>pay_gateway</span> <span class='assign token'>=</span> <span class='string val'>"https://www.alipay.com/cooperate/gateway.do"</span><span class='rparen token'>)</span>
|
198
|
+
<span class='@app ivar id'>@app</span> <span class='assign token'>=</span> <span class='app identifier id'>app</span>
|
199
|
+
<span class='@pay_gateway ivar id'>@pay_gateway</span> <span class='assign token'>=</span> <span class='pay_gateway identifier id'>pay_gateway</span>
|
200
|
+
<span class='@red_xpath ivar id'>@red_xpath</span> <span class='assign token'>=</span> <span class='string val'>"//div[@id='Info']/div[@class='ErrorInfo']/div[@class='Todo']"</span>
|
201
|
+
<span class='end end kw'>end</span>
|
202
|
+
</pre>
|
203
|
+
</td>
|
204
|
+
</tr>
|
205
|
+
</table>
|
206
|
+
</div>
|
207
|
+
|
208
|
+
</div>
|
209
|
+
|
210
|
+
|
211
|
+
<div id="instance_method_details" class="method_details_list">
|
212
|
+
<h2>Instance Method Details</h2>
|
213
|
+
|
214
|
+
|
215
|
+
<div class="method_details first">
|
216
|
+
<p class="signature first" id="call-instance_method">
|
217
|
+
|
218
|
+
- (<tt>Object</tt>) <strong>call</strong>(env)
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
</p><table class="source_code">
|
223
|
+
<tr>
|
224
|
+
<td>
|
225
|
+
<pre class="lines">
|
226
|
+
|
227
|
+
|
228
|
+
15
|
229
|
+
16
|
230
|
+
17
|
231
|
+
18</pre>
|
232
|
+
</td>
|
233
|
+
<td>
|
234
|
+
<pre class="code"><span class="info file"># File 'lib/middles/alipay.rb', line 15</span>
|
235
|
+
|
236
|
+
<span class='def def kw'>def</span> <span class='call identifier id'>call</span><span class='lparen token'>(</span><span class='env identifier id'>env</span><span class='rparen token'>)</span>
|
237
|
+
<span class='status identifier id'>status</span><span class='comma token'>,</span> <span class='header identifier id'>header</span><span class='comma token'>,</span> <span class='body identifier id'>body</span><span class='comma token'>,</span> <span class='req identifier id'>req</span><span class='comma token'>,</span> <span class='red_text identifier id'>red_text</span> <span class='assign token'>=</span> <span class='dig identifier id'>dig</span> <span class='env identifier id'>env</span>
|
238
|
+
<span class='lbrack token'>[</span><span class='status identifier id'>status</span><span class='comma token'>,</span> <span class='header identifier id'>header</span><span class='comma token'>,</span> <span class='get_xml_body identifier id'>get_xml_body</span><span class='lparen token'>(</span><span class='env identifier id'>env</span><span class='comma token'>,</span> <span class='AlipayModel constant id'>AlipayModel</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='req identifier id'>req</span><span class='dot token'>.</span><span class='params identifier id'>params</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='red_text identifier id'>red_text</span><span class='rparen token'>)</span><span class='rbrack token'>]</span>
|
239
|
+
<span class='end end kw'>end</span>
|
240
|
+
</pre>
|
241
|
+
</td>
|
242
|
+
</tr>
|
243
|
+
</table>
|
244
|
+
</div>
|
245
|
+
|
246
|
+
</div>
|
247
|
+
|
248
|
+
</div>
|
249
|
+
|
250
|
+
<div id="footer">
|
251
|
+
Generated on Mon Nov 8 16:21:44 2010 by
|
252
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
253
|
+
0.6.1 (ruby-1.8.7).
|
254
|
+
</div>
|
255
|
+
|
256
|
+
</body>
|
257
|
+
</html>
|