magpie 0.8.8 → 0.8.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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::Chinabank</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 (C)</a> &raquo;
27
+ <span class='title'><span class='object_link'><a href="../Magpie.html" title="Magpie (module)">Magpie</a></span></span>
28
+ &raquo;
29
+ <span class="title">Chinabank</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::Chinabank
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::Chinabank</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/chinabank.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)">- (Chinabank) <strong>initialize</strong>(app, pay_gateway = &quot;https://pay3.chinabank.com.cn/PayGate&quot;) </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 Chinabank.
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::Chinabank (class)">Chinabank</a></span></tt>) <strong>initialize</strong>(app, pay_gateway = &quot;https://pay3.chinabank.com.cn/PayGate&quot;)
168
+
169
+
170
+
171
+ </p><div class="docstring">
172
+ <div class="discussion">
173
+ <p>
174
+ A new instance of Chinabank
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/chinabank.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'>&quot;https://pay3.chinabank.com.cn/PayGate&quot;</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'>&quot;//strong[@class='red']&quot;</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/chinabank.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='ChinabankModel constant id'>ChinabankModel</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>
@@ -0,0 +1,1030 @@
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::ChinabankModel</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 (C)</a> &raquo;
27
+ <span class='title'><span class='object_link'><a href="../Magpie.html" title="Magpie (module)">Magpie</a></span></span>
28
+ &raquo;
29
+ <span class="title">ChinabankModel</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::ChinabankModel
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::ChinabankModel</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="Goose.html" title="Magpie::Goose (module)">Goose</a></span>, <span class='object_link'><a href="Mouse.html" title="Magpie::Mouse (module)">Mouse</a></span></dd>
75
+
76
+
77
+
78
+
79
+
80
+ <dt class="r1 last">Defined in:</dt>
81
+ <dd class="r1 last">lib/models/chinabank.rb</dd>
82
+
83
+ </dl>
84
+ <div class="clear"></div>
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
97
+ <ul class="summary">
98
+
99
+ <li class="public ">
100
+ <span class="summary_signature">
101
+
102
+ <a href="#remark1-instance_method" title="#remark1 (instance method)">- (Object) <strong>remark1</strong> </a>
103
+
104
+
105
+
106
+ </span>
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ <span class="summary_desc"><div class='inline'><p>
119
+ Returns the value of attribute remark1.
120
+ </p>
121
+ </div></span>
122
+
123
+ </li>
124
+
125
+
126
+ <li class="public ">
127
+ <span class="summary_signature">
128
+
129
+ <a href="#remark2-instance_method" title="#remark2 (instance method)">- (Object) <strong>remark2</strong> </a>
130
+
131
+
132
+
133
+ </span>
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+ <span class="summary_desc"><div class='inline'><p>
146
+ Returns the value of attribute remark2.
147
+ </p>
148
+ </div></span>
149
+
150
+ </li>
151
+
152
+
153
+ <li class="public ">
154
+ <span class="summary_signature">
155
+
156
+ <a href="#v_amount-instance_method" title="#v_amount (instance method)">- (Object) <strong>v_amount</strong> </a>
157
+
158
+
159
+
160
+ </span>
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+ <span class="summary_desc"><div class='inline'><p>
173
+ Returns the value of attribute v_amount.
174
+ </p>
175
+ </div></span>
176
+
177
+ </li>
178
+
179
+
180
+ <li class="public ">
181
+ <span class="summary_signature">
182
+
183
+ <a href="#v_md5info-instance_method" title="#v_md5info (instance method)">- (Object) <strong>v_md5info</strong> </a>
184
+
185
+
186
+
187
+ </span>
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+ <span class="summary_desc"><div class='inline'><p>
200
+ Returns the value of attribute v_md5info.
201
+ </p>
202
+ </div></span>
203
+
204
+ </li>
205
+
206
+
207
+ <li class="public ">
208
+ <span class="summary_signature">
209
+
210
+ <a href="#v_mid-instance_method" title="#v_mid (instance method)">- (Object) <strong>v_mid</strong> </a>
211
+
212
+
213
+
214
+ </span>
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+ <span class="summary_desc"><div class='inline'><p>
227
+ Returns the value of attribute v_mid.
228
+ </p>
229
+ </div></span>
230
+
231
+ </li>
232
+
233
+
234
+ <li class="public ">
235
+ <span class="summary_signature">
236
+
237
+ <a href="#v_moneytype-instance_method" title="#v_moneytype (instance method)">- (Object) <strong>v_moneytype</strong> </a>
238
+
239
+
240
+
241
+ </span>
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+ <span class="summary_desc"><div class='inline'><p>
254
+ Returns the value of attribute v_moneytype.
255
+ </p>
256
+ </div></span>
257
+
258
+ </li>
259
+
260
+
261
+ <li class="public ">
262
+ <span class="summary_signature">
263
+
264
+ <a href="#v_oid-instance_method" title="#v_oid (instance method)">- (Object) <strong>v_oid</strong> </a>
265
+
266
+
267
+
268
+ </span>
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+ <span class="summary_desc"><div class='inline'><p>
281
+ Returns the value of attribute v_oid.
282
+ </p>
283
+ </div></span>
284
+
285
+ </li>
286
+
287
+
288
+ <li class="public ">
289
+ <span class="summary_signature">
290
+
291
+ <a href="#v_url-instance_method" title="#v_url (instance method)">- (Object) <strong>v_url</strong> </a>
292
+
293
+
294
+
295
+ </span>
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+ <span class="summary_desc"><div class='inline'><p>
308
+ Returns the value of attribute v_url.
309
+ </p>
310
+ </div></span>
311
+
312
+ </li>
313
+
314
+
315
+ </ul>
316
+
317
+
318
+
319
+ <h2>
320
+ Instance Method Summary
321
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
322
+ </h2>
323
+
324
+ <ul class="summary">
325
+
326
+ <li class="public ">
327
+ <span class="summary_signature">
328
+
329
+ <a href="#invalid_sign%3F-instance_method" title="#invalid_sign? (instance method)">- (Boolean) <strong>invalid_sign?</strong> </a>
330
+
331
+
332
+
333
+ </span>
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+ <span class="summary_desc"><div class='inline'></div></span>
343
+
344
+ </li>
345
+
346
+
347
+ <li class="public ">
348
+ <span class="summary_signature">
349
+
350
+ <a href="#notify-instance_method" title="#notify (instance method)">- (Object) <strong>notify</strong> </a>
351
+
352
+
353
+
354
+ </span>
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+ <span class="summary_desc"><div class='inline'></div></span>
364
+
365
+ </li>
366
+
367
+
368
+ <li class="public ">
369
+ <span class="summary_signature">
370
+
371
+ <a href="#notify_url-instance_method" title="#notify_url (instance method)">- (Object) <strong>notify_url</strong> </a>
372
+
373
+
374
+
375
+ </span>
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+ <span class="summary_desc"><div class='inline'><p>
385
+ 商家系统用来处理网银支付结果的url.
386
+ </p>
387
+ </div></span>
388
+
389
+ </li>
390
+
391
+
392
+ <li class="public ">
393
+ <span class="summary_signature">
394
+
395
+ <a href="#partner-instance_method" title="#partner (instance method)">- (Object) <strong>partner</strong> </a>
396
+
397
+
398
+
399
+ </span>
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+ <span class="summary_desc"><div class='inline'></div></span>
409
+
410
+ </li>
411
+
412
+
413
+ <li class="public ">
414
+ <span class="summary_signature">
415
+
416
+ <a href="#sign-instance_method" title="#sign (instance method)">- (Object) <strong>sign</strong> </a>
417
+
418
+
419
+
420
+ </span>
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+ <span class="summary_desc"><div class='inline'></div></span>
430
+
431
+ </li>
432
+
433
+
434
+ </ul>
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Mouse.html" title="Magpie::Mouse (module)">Mouse</a></span></h3>
446
+ <p class="inherited"><span class='object_link'><a href="Mouse.html#account-instance_method" title="Magpie::Mouse#account (method)">#account</a></span>, <span class='object_link'><a href="Mouse.html#included-class_method" title="Magpie::Mouse.included (method)">included</a></span>, <span class='object_link'><a href="Mouse.html#key-instance_method" title="Magpie::Mouse#key (method)">#key</a></span>, <span class='object_link'><a href="Mouse.html#missing_partner%3F-instance_method" title="Magpie::Mouse#missing_partner? (method)">#missing_partner?</a></span></p>
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Goose.html" title="Magpie::Goose (module)">Goose</a></span></h3>
456
+ <p class="inherited"><span class='object_link'><a href="Goose.html#errors-instance_method" title="Magpie::Goose#errors (method)">#errors</a></span>, <span class='object_link'><a href="Goose.html#included-class_method" title="Magpie::Goose.included (method)">included</a></span>, <span class='object_link'><a href="Goose.html#initialize-instance_method" title="Magpie::Goose#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Goose.html#valid%3F-instance_method" title="Magpie::Goose#valid? (method)">#valid?</a></span>, <span class='object_link'><a href="Goose.html#validating-instance_method" title="Magpie::Goose#validating (method)">#validating</a></span></p>
457
+ <div id="constructor_details" class="method_details_list">
458
+ <h2>Constructor Details</h2>
459
+
460
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a href="Goose.html#initialize-instance_method" title="Magpie::Goose#initialize (method)">Magpie::Goose</a></span></p>
461
+
462
+ </div>
463
+
464
+ <div id="instance_attr_details" class="attr_details">
465
+ <h2>Instance Attribute Details</h2>
466
+
467
+
468
+ <span id="remark1=-instance_method"></span>
469
+ <span id="remark1-instance_method"></span>
470
+ <div class="method_details first">
471
+ <p class="signature first" id="remark1-instance_method">
472
+
473
+ - (<tt>Object</tt>) <strong>remark1</strong>
474
+
475
+
476
+
477
+ </p><div class="docstring">
478
+ <div class="discussion">
479
+ <p>
480
+ Returns the value of attribute remark1
481
+ </p>
482
+
483
+
484
+ </div>
485
+ </div>
486
+ <div class="tags">
487
+
488
+ </div><table class="source_code">
489
+ <tr>
490
+ <td>
491
+ <pre class="lines">
492
+
493
+
494
+ 11
495
+ 12
496
+ 13</pre>
497
+ </td>
498
+ <td>
499
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 11</span>
500
+
501
+ <span class='def def kw'>def</span> <span class='remark1 identifier id'>remark1</span>
502
+ <span class='@remark1 ivar id'>@remark1</span>
503
+ <span class='end end kw'>end</span>
504
+ </pre>
505
+ </td>
506
+ </tr>
507
+ </table>
508
+ </div>
509
+
510
+
511
+ <span id="remark2=-instance_method"></span>
512
+ <span id="remark2-instance_method"></span>
513
+ <div class="method_details ">
514
+ <p class="signature " id="remark2-instance_method">
515
+
516
+ - (<tt>Object</tt>) <strong>remark2</strong>
517
+
518
+
519
+
520
+ </p><div class="docstring">
521
+ <div class="discussion">
522
+ <p>
523
+ Returns the value of attribute remark2
524
+ </p>
525
+
526
+
527
+ </div>
528
+ </div>
529
+ <div class="tags">
530
+
531
+ </div><table class="source_code">
532
+ <tr>
533
+ <td>
534
+ <pre class="lines">
535
+
536
+
537
+ 11
538
+ 12
539
+ 13</pre>
540
+ </td>
541
+ <td>
542
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 11</span>
543
+
544
+ <span class='def def kw'>def</span> <span class='remark2 identifier id'>remark2</span>
545
+ <span class='@remark2 ivar id'>@remark2</span>
546
+ <span class='end end kw'>end</span>
547
+ </pre>
548
+ </td>
549
+ </tr>
550
+ </table>
551
+ </div>
552
+
553
+
554
+ <span id="v_amount=-instance_method"></span>
555
+ <span id="v_amount-instance_method"></span>
556
+ <div class="method_details ">
557
+ <p class="signature " id="v_amount-instance_method">
558
+
559
+ - (<tt>Object</tt>) <strong>v_amount</strong>
560
+
561
+
562
+
563
+ </p><div class="docstring">
564
+ <div class="discussion">
565
+ <p>
566
+ Returns the value of attribute v_amount
567
+ </p>
568
+
569
+
570
+ </div>
571
+ </div>
572
+ <div class="tags">
573
+
574
+ </div><table class="source_code">
575
+ <tr>
576
+ <td>
577
+ <pre class="lines">
578
+
579
+
580
+ 11
581
+ 12
582
+ 13</pre>
583
+ </td>
584
+ <td>
585
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 11</span>
586
+
587
+ <span class='def def kw'>def</span> <span class='v_amount identifier id'>v_amount</span>
588
+ <span class='@v_amount ivar id'>@v_amount</span>
589
+ <span class='end end kw'>end</span>
590
+ </pre>
591
+ </td>
592
+ </tr>
593
+ </table>
594
+ </div>
595
+
596
+
597
+ <span id="v_md5info=-instance_method"></span>
598
+ <span id="v_md5info-instance_method"></span>
599
+ <div class="method_details ">
600
+ <p class="signature " id="v_md5info-instance_method">
601
+
602
+ - (<tt>Object</tt>) <strong>v_md5info</strong>
603
+
604
+
605
+
606
+ </p><div class="docstring">
607
+ <div class="discussion">
608
+ <p>
609
+ Returns the value of attribute v_md5info
610
+ </p>
611
+
612
+
613
+ </div>
614
+ </div>
615
+ <div class="tags">
616
+
617
+ </div><table class="source_code">
618
+ <tr>
619
+ <td>
620
+ <pre class="lines">
621
+
622
+
623
+ 11
624
+ 12
625
+ 13</pre>
626
+ </td>
627
+ <td>
628
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 11</span>
629
+
630
+ <span class='def def kw'>def</span> <span class='v_md5info identifier id'>v_md5info</span>
631
+ <span class='@v_md5info ivar id'>@v_md5info</span>
632
+ <span class='end end kw'>end</span>
633
+ </pre>
634
+ </td>
635
+ </tr>
636
+ </table>
637
+ </div>
638
+
639
+
640
+ <span id="v_mid=-instance_method"></span>
641
+ <span id="v_mid-instance_method"></span>
642
+ <div class="method_details ">
643
+ <p class="signature " id="v_mid-instance_method">
644
+
645
+ - (<tt>Object</tt>) <strong>v_mid</strong>
646
+
647
+
648
+
649
+ </p><div class="docstring">
650
+ <div class="discussion">
651
+ <p>
652
+ Returns the value of attribute v_mid
653
+ </p>
654
+
655
+
656
+ </div>
657
+ </div>
658
+ <div class="tags">
659
+
660
+ </div><table class="source_code">
661
+ <tr>
662
+ <td>
663
+ <pre class="lines">
664
+
665
+
666
+ 11
667
+ 12
668
+ 13</pre>
669
+ </td>
670
+ <td>
671
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 11</span>
672
+
673
+ <span class='def def kw'>def</span> <span class='v_mid identifier id'>v_mid</span>
674
+ <span class='@v_mid ivar id'>@v_mid</span>
675
+ <span class='end end kw'>end</span>
676
+ </pre>
677
+ </td>
678
+ </tr>
679
+ </table>
680
+ </div>
681
+
682
+
683
+ <span id="v_moneytype=-instance_method"></span>
684
+ <span id="v_moneytype-instance_method"></span>
685
+ <div class="method_details ">
686
+ <p class="signature " id="v_moneytype-instance_method">
687
+
688
+ - (<tt>Object</tt>) <strong>v_moneytype</strong>
689
+
690
+
691
+
692
+ </p><div class="docstring">
693
+ <div class="discussion">
694
+ <p>
695
+ Returns the value of attribute v_moneytype
696
+ </p>
697
+
698
+
699
+ </div>
700
+ </div>
701
+ <div class="tags">
702
+
703
+ </div><table class="source_code">
704
+ <tr>
705
+ <td>
706
+ <pre class="lines">
707
+
708
+
709
+ 11
710
+ 12
711
+ 13</pre>
712
+ </td>
713
+ <td>
714
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 11</span>
715
+
716
+ <span class='def def kw'>def</span> <span class='v_moneytype identifier id'>v_moneytype</span>
717
+ <span class='@v_moneytype ivar id'>@v_moneytype</span>
718
+ <span class='end end kw'>end</span>
719
+ </pre>
720
+ </td>
721
+ </tr>
722
+ </table>
723
+ </div>
724
+
725
+
726
+ <span id="v_oid=-instance_method"></span>
727
+ <span id="v_oid-instance_method"></span>
728
+ <div class="method_details ">
729
+ <p class="signature " id="v_oid-instance_method">
730
+
731
+ - (<tt>Object</tt>) <strong>v_oid</strong>
732
+
733
+
734
+
735
+ </p><div class="docstring">
736
+ <div class="discussion">
737
+ <p>
738
+ Returns the value of attribute v_oid
739
+ </p>
740
+
741
+
742
+ </div>
743
+ </div>
744
+ <div class="tags">
745
+
746
+ </div><table class="source_code">
747
+ <tr>
748
+ <td>
749
+ <pre class="lines">
750
+
751
+
752
+ 11
753
+ 12
754
+ 13</pre>
755
+ </td>
756
+ <td>
757
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 11</span>
758
+
759
+ <span class='def def kw'>def</span> <span class='v_oid identifier id'>v_oid</span>
760
+ <span class='@v_oid ivar id'>@v_oid</span>
761
+ <span class='end end kw'>end</span>
762
+ </pre>
763
+ </td>
764
+ </tr>
765
+ </table>
766
+ </div>
767
+
768
+
769
+ <span id="v_url=-instance_method"></span>
770
+ <span id="v_url-instance_method"></span>
771
+ <div class="method_details ">
772
+ <p class="signature " id="v_url-instance_method">
773
+
774
+ - (<tt>Object</tt>) <strong>v_url</strong>
775
+
776
+
777
+
778
+ </p><div class="docstring">
779
+ <div class="discussion">
780
+ <p>
781
+ Returns the value of attribute v_url
782
+ </p>
783
+
784
+
785
+ </div>
786
+ </div>
787
+ <div class="tags">
788
+
789
+ </div><table class="source_code">
790
+ <tr>
791
+ <td>
792
+ <pre class="lines">
793
+
794
+
795
+ 11
796
+ 12
797
+ 13</pre>
798
+ </td>
799
+ <td>
800
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 11</span>
801
+
802
+ <span class='def def kw'>def</span> <span class='v_url identifier id'>v_url</span>
803
+ <span class='@v_url ivar id'>@v_url</span>
804
+ <span class='end end kw'>end</span>
805
+ </pre>
806
+ </td>
807
+ </tr>
808
+ </table>
809
+ </div>
810
+
811
+ </div>
812
+
813
+
814
+ <div id="instance_method_details" class="method_details_list">
815
+ <h2>Instance Method Details</h2>
816
+
817
+
818
+ <div class="method_details first">
819
+ <p class="signature first" id="invalid_sign?-instance_method">
820
+
821
+ - (<tt>Boolean</tt>) <strong>invalid_sign?</strong>
822
+
823
+
824
+
825
+ </p><div class="docstring">
826
+ <div class="discussion">
827
+
828
+
829
+ </div>
830
+ </div>
831
+ <div class="tags">
832
+ <h3>Returns:</h3>
833
+ <ul class="return">
834
+
835
+ <li>
836
+
837
+ <span class='type'>(<tt>Boolean</tt>)</span>
838
+
839
+
840
+
841
+
842
+ </li>
843
+
844
+ </ul>
845
+
846
+ </div><table class="source_code">
847
+ <tr>
848
+ <td>
849
+ <pre class="lines">
850
+
851
+
852
+ 23
853
+ 24
854
+ 25
855
+ 26
856
+ 27
857
+ 28</pre>
858
+ </td>
859
+ <td>
860
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 23</span>
861
+
862
+ <span class='def def kw'>def</span> <span class='invalid_sign? fid id'>invalid_sign?</span>
863
+ <span class='text identifier id'>text</span> <span class='assign token'>=</span> <span class='@attributes ivar id'>@attributes</span><span class='lbrack token'>[</span><span class='string val'>&quot;v_amount&quot;</span><span class='rbrack token'>]</span><span class='plus op'>+</span><span class='@attributes ivar id'>@attributes</span><span class='lbrack token'>[</span><span class='string val'>&quot;v_moneytype&quot;</span><span class='rbrack token'>]</span><span class='plus op'>+</span><span class='@attributes ivar id'>@attributes</span><span class='lbrack token'>[</span><span class='string val'>&quot;v_oid&quot;</span><span class='rbrack token'>]</span><span class='plus op'>+</span><span class='@attributes ivar id'>@attributes</span><span class='lbrack token'>[</span><span class='string val'>&quot;v_mid&quot;</span><span class='rbrack token'>]</span><span class='plus op'>+</span><span class='@attributes ivar id'>@attributes</span><span class='lbrack token'>[</span><span class='string val'>&quot;v_url&quot;</span><span class='rbrack token'>]</span><span class='plus op'>+</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='key identifier id'>key</span>
864
+ <span class='self self kw'>self</span><span class='dot token'>.</span><span class='sign identifier id'>sign</span><span class='dot token'>.</span><span class='upcase identifier id'>upcase</span> <span class='eq op'>==</span> <span class='Digest constant id'>Digest</span><span class='colon2 op'>::</span><span class='MD5 constant id'>MD5</span><span class='dot token'>.</span><span class='hexdigest identifier id'>hexdigest</span><span class='lparen token'>(</span><span class='text identifier id'>text</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='upcase identifier id'>upcase</span> <span class='integer val'>? </span><span class='false false kw'>false</span> <span class='colon op'>:</span> <span class='true true kw'>true</span>
865
+ <span class='rescue rescue kw'>rescue</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='e identifier id'>e</span>
866
+ <span class='true true kw'>true</span>
867
+ <span class='end end kw'>end</span>
868
+ </pre>
869
+ </td>
870
+ </tr>
871
+ </table>
872
+ </div>
873
+
874
+ <div class="method_details ">
875
+ <p class="signature " id="notify-instance_method">
876
+
877
+ - (<tt>Object</tt>) <strong>notify</strong>
878
+
879
+
880
+
881
+ </p><table class="source_code">
882
+ <tr>
883
+ <td>
884
+ <pre class="lines">
885
+
886
+
887
+ 43
888
+ 44
889
+ 45
890
+ 46
891
+ 47
892
+ 48
893
+ 49
894
+ 50
895
+ 51
896
+ 52
897
+ 53
898
+ 54</pre>
899
+ </td>
900
+ <td>
901
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 43</span>
902
+
903
+ <span class='def def kw'>def</span> <span class='notify identifier id'>notify</span>
904
+ <span class='@notify ivar id'>@notify</span> <span class='opasgn op'>||=</span> <span class='lbrace token'>{</span> <span class='string val'>&quot;v_oid&quot;</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='v_oid identifier id'>v_oid</span><span class='comma token'>,</span>
905
+ <span class='string val'>&quot;v_pstatus&quot;</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='v_pstatus identifier id'>v_pstatus</span><span class='comma token'>,</span>
906
+ <span class='string val'>&quot;v_amount&quot;</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='v_amount identifier id'>v_amount</span><span class='comma token'>,</span>
907
+ <span class='string val'>&quot;v_pstring&quot;</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='v_pstring identifier id'>v_pstring</span><span class='comma token'>,</span>
908
+ <span class='string val'>&quot;v_pmode&quot;</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='v_pmode identifier id'>v_pmode</span><span class='comma token'>,</span>
909
+ <span class='string val'>&quot;v_moneytype&quot;</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='v_moneytype identifier id'>v_moneytype</span><span class='comma token'>,</span>
910
+ <span class='string val'>&quot;v_md5str&quot;</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='notify_sign identifier id'>notify_sign</span><span class='comma token'>,</span>
911
+ <span class='string val'>&quot;remark1&quot;</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='remark1 identifier id'>remark1</span><span class='comma token'>,</span>
912
+ <span class='string val'>&quot;remark2&quot;</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='remark2 identifier id'>remark2</span>
913
+ <span class='rbrace token'>}</span><span class='dot token'>.</span><span class='delete_if identifier id'>delete_if</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='k identifier id'>k</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='bitor op'>|</span> <span class='v identifier id'>v</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='eq op'>==</span> <span class='integer val'>0</span><span class='rbrace token'>}</span>
914
+ <span class='end end kw'>end</span>
915
+ </pre>
916
+ </td>
917
+ </tr>
918
+ </table>
919
+ </div>
920
+
921
+ <div class="method_details ">
922
+ <p class="signature " id="notify_url-instance_method">
923
+
924
+ - (<tt>Object</tt>) <strong>notify_url</strong>
925
+
926
+
927
+
928
+ </p><div class="docstring">
929
+ <div class="discussion">
930
+ <p>
931
+ 商家系统用来处理网银支付结果的url
932
+ </p>
933
+
934
+
935
+ </div>
936
+ </div>
937
+ <div class="tags">
938
+
939
+ </div><table class="source_code">
940
+ <tr>
941
+ <td>
942
+ <pre class="lines">
943
+
944
+
945
+ 39
946
+ 40
947
+ 41</pre>
948
+ </td>
949
+ <td>
950
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 39</span>
951
+
952
+ <span class='def def kw'>def</span> <span class='notify_url identifier id'>notify_url</span>
953
+ <span class='self self kw'>self</span><span class='dot token'>.</span><span class='v_url identifier id'>v_url</span>
954
+ <span class='end end kw'>end</span>
955
+ </pre>
956
+ </td>
957
+ </tr>
958
+ </table>
959
+ </div>
960
+
961
+ <div class="method_details ">
962
+ <p class="signature " id="partner-instance_method">
963
+
964
+ - (<tt>Object</tt>) <strong>partner</strong>
965
+
966
+
967
+
968
+ </p><table class="source_code">
969
+ <tr>
970
+ <td>
971
+ <pre class="lines">
972
+
973
+
974
+ 34
975
+ 35
976
+ 36</pre>
977
+ </td>
978
+ <td>
979
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 34</span>
980
+
981
+ <span class='def def kw'>def</span> <span class='partner identifier id'>partner</span>
982
+ <span class='self self kw'>self</span><span class='dot token'>.</span><span class='v_mid identifier id'>v_mid</span>
983
+ <span class='end end kw'>end</span>
984
+ </pre>
985
+ </td>
986
+ </tr>
987
+ </table>
988
+ </div>
989
+
990
+ <div class="method_details ">
991
+ <p class="signature " id="sign-instance_method">
992
+
993
+ - (<tt>Object</tt>) <strong>sign</strong>
994
+
995
+
996
+
997
+ </p><table class="source_code">
998
+ <tr>
999
+ <td>
1000
+ <pre class="lines">
1001
+
1002
+
1003
+ 30
1004
+ 31
1005
+ 32</pre>
1006
+ </td>
1007
+ <td>
1008
+ <pre class="code"><span class="info file"># File 'lib/models/chinabank.rb', line 30</span>
1009
+
1010
+ <span class='def def kw'>def</span> <span class='sign identifier id'>sign</span>
1011
+ <span class='self self kw'>self</span><span class='dot token'>.</span><span class='v_md5info identifier id'>v_md5info</span>
1012
+ <span class='end end kw'>end</span>
1013
+ </pre>
1014
+ </td>
1015
+ </tr>
1016
+ </table>
1017
+ </div>
1018
+
1019
+ </div>
1020
+
1021
+ </div>
1022
+
1023
+ <div id="footer">
1024
+ Generated on Mon Nov 8 16:21:44 2010 by
1025
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1026
+ 0.6.1 (ruby-1.8.7).
1027
+ </div>
1028
+
1029
+ </body>
1030
+ </html>