payments-pl 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,170 @@
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: Payments::ViewHelpers</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 (V)</a> &raquo;
27
+ <span class='title'><a href="../Payments.html" title="Payments (module)">Payments</a></span>
28
+ &raquo;
29
+ <span class="title">ViewHelpers</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: Payments::ViewHelpers
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/payments/view_helpers.rb</dd>
63
+
64
+ </dl>
65
+ <div class="clear"></div>
66
+
67
+
68
+
69
+
70
+
71
+ <h2>
72
+ Instance Method Summary
73
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
74
+ </h2>
75
+
76
+ <ul class="summary">
77
+
78
+ <li class="public ">
79
+ <span class="summary_signature">
80
+
81
+ <a href="#transaction_hidden_fields-instance_method" title="#transaction_hidden_fields (instance method)">- (Object) <strong>transaction_hidden_fields</strong>(transaction) </a>
82
+
83
+
84
+
85
+ </span>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+ <span class="summary_desc"><div class='inline'></div></span>
95
+
96
+ </li>
97
+
98
+
99
+ </ul>
100
+
101
+
102
+
103
+
104
+ <div id="instance_method_details" class="method_details_list">
105
+ <h2>Instance Method Details</h2>
106
+
107
+
108
+ <div class="method_details first">
109
+ <p class="signature first" id="transaction_hidden_fields-instance_method">
110
+
111
+ - (<tt>Object</tt>) <strong>transaction_hidden_fields</strong>(transaction)
112
+
113
+
114
+
115
+ </p><table class="source_code">
116
+ <tr>
117
+ <td>
118
+ <pre class="lines">
119
+
120
+
121
+ 3
122
+ 4
123
+ 5
124
+ 6
125
+ 7
126
+ 8
127
+ 9
128
+ 10
129
+ 11
130
+ 12
131
+ 13
132
+ 14
133
+ 15
134
+ 16</pre>
135
+ </td>
136
+ <td>
137
+ <pre class="code"><span class="info file"># File 'lib/payments/view_helpers.rb', line 3</span>
138
+
139
+ <span class='def def kw'>def</span> <span class='transaction_hidden_fields identifier id'>transaction_hidden_fields</span><span class='lparen token'>(</span><span class='transaction identifier id'>transaction</span><span class='rparen token'>)</span>
140
+ <span class='html identifier id'>html</span> <span class='assign token'>=</span> <span class='string val'>&quot;&quot;</span>
141
+
142
+ <span class='dstring node'>%w(pos_id pos_auth_key pay_type session_id amount desc
143
+ order_id desc2 trs_desc first_name last_name street street_hn
144
+ street_an city post_code country email phone language client_ip
145
+ js payback_login sig ts
146
+ )</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='field identifier id'>field</span><span class='bitor op'>|</span>
147
+ <span class='value identifier id'>value</span> <span class='assign token'>=</span> <span class='transaction identifier id'>transaction</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='field identifier id'>field</span><span class='rparen token'>)</span>
148
+ <span class='html identifier id'>html</span> <span class='lshft op'>&lt;&lt;</span> <span class='hidden_field_tag identifier id'>hidden_field_tag</span><span class='lparen token'>(</span><span class='field identifier id'>field</span><span class='comma token'>,</span> <span class='value identifier id'>value</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='value identifier id'>value</span><span class='dot token'>.</span><span class='blank? fid id'>blank?</span>
149
+ <span class='end end kw'>end</span>
150
+
151
+ <span class='html identifier id'>html</span>
152
+ <span class='end end kw'>end</span>
153
+ </pre>
154
+ </td>
155
+ </tr>
156
+ </table>
157
+ </div>
158
+
159
+ </div>
160
+
161
+ </div>
162
+
163
+ <div id="footer">
164
+ Generated on Tue Aug 17 16:13:28 2010 by
165
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
166
+ 0.5.8 (ruby-1.8.7).
167
+ </div>
168
+
169
+ </body>
170
+ </html>
data/doc/Payments.html ADDED
@@ -0,0 +1,433 @@
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: Payments</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 (P)</a> &raquo;
27
+
28
+
29
+ <span class="title">Payments</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: Payments
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/payments_pl.rb<span class="defines">,<br />
63
+ lib/payments/pos.rb,<br /> lib/payments/transaction.rb,<br /> lib/payments/view_helpers.rb</span>
64
+ </dd>
65
+
66
+ </dl>
67
+ <div class="clear"></div>
68
+
69
+ <h2>Defined Under Namespace</h2>
70
+ <p class="children">
71
+
72
+
73
+ <strong class="modules">Modules:</strong> <a href="Payments/ViewHelpers.html" title="Payments::ViewHelpers (module)">ViewHelpers</a>
74
+
75
+
76
+
77
+ <strong class="classes">Classes:</strong> <a href="Payments/Pos.html" title="Payments::Pos (class)">Pos</a>, <a href="Payments/PosNotFound.html" title="Payments::PosNotFound (class)">PosNotFound</a>, <a href="Payments/RequestFailed.html" title="Payments::RequestFailed (class)">RequestFailed</a>, <a href="Payments/SignatureInvalid.html" title="Payments::SignatureInvalid (class)">SignatureInvalid</a>, <a href="Payments/Transaction.html" title="Payments::Transaction (class)">Transaction</a>
78
+
79
+
80
+ </p>
81
+
82
+ <h2>Constant Summary</h2>
83
+
84
+ <dl class="constants">
85
+
86
+ <dt id="ERRORS-constant" class="">ERRORS =
87
+
88
+ </dt>
89
+ <dd><pre class="code"><span class='lbrace token'>{</span>
90
+ <span class='integer val'>100</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parametru pos_id'</span><span class='comma token'>,</span>
91
+ <span class='integer val'>101</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parametru session_id'</span><span class='comma token'>,</span>
92
+ <span class='integer val'>102</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parametru ts'</span><span class='comma token'>,</span>
93
+ <span class='integer val'>103</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parametru sig'</span><span class='comma token'>,</span>
94
+ <span class='integer val'>104</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parametru desc'</span><span class='comma token'>,</span>
95
+ <span class='integer val'>105</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parametru client_ip'</span><span class='comma token'>,</span>
96
+ <span class='integer val'>106</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parametru first_name'</span><span class='comma token'>,</span>
97
+ <span class='integer val'>107</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parametru last_name'</span><span class='comma token'>,</span>
98
+ <span class='integer val'>108</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parametru street'</span><span class='comma token'>,</span>
99
+ <span class='integer val'>109</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parametru city'</span><span class='comma token'>,</span>
100
+ <span class='integer val'>110</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parametru post_code'</span><span class='comma token'>,</span>
101
+ <span class='integer val'>111</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parametru amount'</span><span class='comma token'>,</span>
102
+ <span class='integer val'>112</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Błędny numer konta bankowego'</span><span class='comma token'>,</span>
103
+ <span class='integer val'>113</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak parameteru email'</span><span class='comma token'>,</span>
104
+ <span class='integer val'>114</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak numeru telefonu'</span><span class='comma token'>,</span>
105
+ <span class='integer val'>200</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Inny chwilowy błąd'</span><span class='comma token'>,</span>
106
+ <span class='integer val'>201</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Inny chwilowy błąd bazy danych'</span><span class='comma token'>,</span>
107
+ <span class='integer val'>202</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'POS o podanym identyfikatorze jest zablokowany'</span><span class='comma token'>,</span>
108
+ <span class='integer val'>203</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Niedozwolona wartość pay_type dla danego pos_id'</span><span class='comma token'>,</span>
109
+ <span class='integer val'>204</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Podana metoda płatności (wartość pay_type) jest chwilowo zablokowana dla danego pos_id, np. przerwa konserwacyjna bramki płatniczej'</span><span class='comma token'>,</span>
110
+ <span class='integer val'>205</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Kwota transakcji mniejsza od wartości minimalnej'</span><span class='comma token'>,</span>
111
+ <span class='integer val'>206</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Kwota transakcji większa od wartości maksymalnej'</span><span class='comma token'>,</span>
112
+ <span class='integer val'>207</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Przekroczona wartość wszystkich transakcji dla jednego klienta w ostatnim przedziale czasowym'</span><span class='comma token'>,</span>
113
+ <span class='integer val'>208</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'POS dziala w wariancie ExpressPayment lecz nie nastąpiła aktywacja tego wariantu współpracy (czekamy na zgodę działu obsługi klienta)'</span><span class='comma token'>,</span>
114
+ <span class='integer val'>209</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Błędny numer pos id lub pos auth key'</span><span class='comma token'>,</span>
115
+ <span class='integer val'>500</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Transakcja nie istnieje'</span><span class='comma token'>,</span>
116
+ <span class='integer val'>501</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Brak autoryzacji dla danej transakcji'</span><span class='comma token'>,</span>
117
+ <span class='integer val'>502</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Transakcja rozpoczęta wcześniej'</span><span class='comma token'>,</span>
118
+ <span class='integer val'>503</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Autoryzacja do transakcji była juz przeprowadzana'</span><span class='comma token'>,</span>
119
+ <span class='integer val'>504</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Transakcja anulowana wczesniej'</span><span class='comma token'>,</span>
120
+ <span class='integer val'>505</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Transakcja przekazana do odbioru wcześniej'</span><span class='comma token'>,</span>
121
+ <span class='integer val'>506</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Transakcja już odebrana'</span><span class='comma token'>,</span>
122
+ <span class='integer val'>507</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Błąd podczas zwrotu środków do klienta'</span><span class='comma token'>,</span>
123
+ <span class='integer val'>599</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Błędny stan transakcji, np. nie można uznać transakcji kilka razy lub inny, prosimy o kontakt'</span><span class='comma token'>,</span>
124
+ <span class='integer val'>999</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'Inny błąd krytyczny - prosimy o kontakt'</span>
125
+ <span class='rbrace token'>}</span>
126
+ </pre></dd>
127
+
128
+ <dt id="pos_table-classvariable" class="">@@pos_table =
129
+
130
+ </dt>
131
+ <dd><pre class="code"><span class='lbrace token'>{</span><span class='rbrace token'>}</span>
132
+ </pre></dd>
133
+
134
+ </dl>
135
+
136
+
137
+
138
+
139
+
140
+ <h2>
141
+ Class Method Summary
142
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
143
+ </h2>
144
+
145
+ <ul class="summary">
146
+
147
+ <li class="public ">
148
+ <span class="summary_signature">
149
+
150
+ <a href="#%5B%5D-class_method" title="[] (class method)">+ (Object) <strong>[]</strong>(name_or_id) </a>
151
+
152
+
153
+
154
+ </span>
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+ <span class="summary_desc"><div class='inline'></div></span>
164
+
165
+ </li>
166
+
167
+
168
+ <li class="public ">
169
+ <span class="summary_signature">
170
+
171
+ <a href="#error_text-class_method" title="error_text (class method)">+ (Object) <strong>error_text</strong>(error_code) </a>
172
+
173
+
174
+
175
+ </span>
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+ <span class="summary_desc"><div class='inline'></div></span>
185
+
186
+ </li>
187
+
188
+
189
+ <li class="public ">
190
+ <span class="summary_signature">
191
+
192
+ <a href="#get_pos_by_id-class_method" title="get_pos_by_id (class method)">+ (Object) <strong>get_pos_by_id</strong>(id) </a>
193
+
194
+
195
+
196
+ </span>
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+ <span class="summary_desc"><div class='inline'></div></span>
206
+
207
+ </li>
208
+
209
+
210
+ <li class="public ">
211
+ <span class="summary_signature">
212
+
213
+ <a href="#get_pos_by_name-class_method" title="get_pos_by_name (class method)">+ (Object) <strong>get_pos_by_name</strong>(name) </a>
214
+
215
+
216
+
217
+ </span>
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+ <span class="summary_desc"><div class='inline'></div></span>
227
+
228
+ </li>
229
+
230
+
231
+ <li class="public ">
232
+ <span class="summary_signature">
233
+
234
+ <a href="#init-class_method" title="init (class method)">+ (Object) <strong>init</strong> </a>
235
+
236
+
237
+
238
+ </span>
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+ <span class="summary_desc"><div class='inline'></div></span>
248
+
249
+ </li>
250
+
251
+
252
+ </ul>
253
+
254
+
255
+
256
+
257
+ <div id="class_method_details" class="method_details_list">
258
+ <h2>Class Method Details</h2>
259
+
260
+
261
+ <div class="method_details first">
262
+ <p class="signature first" id="[]-class_method">
263
+
264
+ + (<tt>Object</tt>) <strong>[]</strong>(name_or_id)
265
+
266
+
267
+
268
+ </p><table class="source_code">
269
+ <tr>
270
+ <td>
271
+ <pre class="lines">
272
+
273
+
274
+ 61
275
+ 62
276
+ 63</pre>
277
+ </td>
278
+ <td>
279
+ <pre class="code"><span class="info file"># File 'lib/payments_pl.rb', line 61</span>
280
+
281
+ <span class='def def kw'>def</span> <span class='aref op'>[]</span><span class='lparen token'>(</span><span class='name_or_id identifier id'>name_or_id</span><span class='rparen token'>)</span>
282
+ <span class='get_pos_by_name identifier id'>get_pos_by_name</span><span class='lparen token'>(</span><span class='name_or_id identifier id'>name_or_id</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='get_pos_by_id identifier id'>get_pos_by_id</span><span class='lparen token'>(</span><span class='name_or_id identifier id'>name_or_id</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='raise identifier id'>raise</span><span class='lparen token'>(</span><span class='PosNotFound constant id'>PosNotFound</span><span class='rparen token'>)</span>
283
+ <span class='end end kw'>end</span>
284
+ </pre>
285
+ </td>
286
+ </tr>
287
+ </table>
288
+ </div>
289
+
290
+ <div class="method_details ">
291
+ <p class="signature " id="error_text-class_method">
292
+
293
+ + (<tt>Object</tt>) <strong>error_text</strong>(error_code)
294
+
295
+
296
+
297
+ </p><table class="source_code">
298
+ <tr>
299
+ <td>
300
+ <pre class="lines">
301
+
302
+
303
+ 77
304
+ 78
305
+ 79</pre>
306
+ </td>
307
+ <td>
308
+ <pre class="code"><span class="info file"># File 'lib/payments_pl.rb', line 77</span>
309
+
310
+ <span class='def def kw'>def</span> <span class='error_text identifier id'>error_text</span><span class='lparen token'>(</span><span class='error_code identifier id'>error_code</span><span class='rparen token'>)</span>
311
+ <span class='ERRORS constant id'>ERRORS</span><span class='lbrack token'>[</span><span class='error_code identifier id'>error_code</span><span class='dot token'>.</span><span class='to_i identifier id'>to_i</span><span class='rbrack token'>]</span>
312
+ <span class='end end kw'>end</span>
313
+ </pre>
314
+ </td>
315
+ </tr>
316
+ </table>
317
+ </div>
318
+
319
+ <div class="method_details ">
320
+ <p class="signature " id="get_pos_by_id-class_method">
321
+
322
+ + (<tt>Object</tt>) <strong>get_pos_by_id</strong>(id)
323
+
324
+
325
+
326
+ </p><table class="source_code">
327
+ <tr>
328
+ <td>
329
+ <pre class="lines">
330
+
331
+
332
+ 69
333
+ 70
334
+ 71
335
+ 72
336
+ 73
337
+ 74
338
+ 75</pre>
339
+ </td>
340
+ <td>
341
+ <pre class="code"><span class="info file"># File 'lib/payments_pl.rb', line 69</span>
342
+
343
+ <span class='def def kw'>def</span> <span class='get_pos_by_id identifier id'>get_pos_by_id</span><span class='lparen token'>(</span><span class='id identifier id'>id</span><span class='rparen token'>)</span>
344
+ <span class='id identifier id'>id</span> <span class='assign token'>=</span> <span class='id identifier id'>id</span><span class='dot token'>.</span><span class='to_i identifier id'>to_i</span>
345
+ <span class='@@pos_table ivar id'>@@pos_table</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</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>
346
+ <span class='return return kw'>return</span> <span class='v identifier id'>v</span> <span class='if if_mod kw'>if</span> <span class='v identifier id'>v</span><span class='dot token'>.</span><span class='pos_id identifier id'>pos_id</span> <span class='eq op'>==</span> <span class='id identifier id'>id</span>
347
+ <span class='end end kw'>end</span>
348
+ <span class='nil nil kw'>nil</span>
349
+ <span class='end end kw'>end</span>
350
+ </pre>
351
+ </td>
352
+ </tr>
353
+ </table>
354
+ </div>
355
+
356
+ <div class="method_details ">
357
+ <p class="signature " id="get_pos_by_name-class_method">
358
+
359
+ + (<tt>Object</tt>) <strong>get_pos_by_name</strong>(name)
360
+
361
+
362
+
363
+ </p><table class="source_code">
364
+ <tr>
365
+ <td>
366
+ <pre class="lines">
367
+
368
+
369
+ 65
370
+ 66
371
+ 67</pre>
372
+ </td>
373
+ <td>
374
+ <pre class="code"><span class="info file"># File 'lib/payments_pl.rb', line 65</span>
375
+
376
+ <span class='def def kw'>def</span> <span class='get_pos_by_name identifier id'>get_pos_by_name</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='rparen token'>)</span>
377
+ <span class='@@pos_table ivar id'>@@pos_table</span><span class='lbrack token'>[</span><span class='name identifier id'>name</span><span class='rbrack token'>]</span>
378
+ <span class='end end kw'>end</span>
379
+ </pre>
380
+ </td>
381
+ </tr>
382
+ </table>
383
+ </div>
384
+
385
+ <div class="method_details ">
386
+ <p class="signature " id="init-class_method">
387
+
388
+ + (<tt>Object</tt>) <strong>init</strong>
389
+
390
+
391
+
392
+ </p><table class="source_code">
393
+ <tr>
394
+ <td>
395
+ <pre class="lines">
396
+
397
+
398
+ 53
399
+ 54
400
+ 55
401
+ 56
402
+ 57
403
+ 58
404
+ 59</pre>
405
+ </td>
406
+ <td>
407
+ <pre class="code"><span class="info file"># File 'lib/payments_pl.rb', line 53</span>
408
+
409
+ <span class='def def kw'>def</span> <span class='init identifier id'>init</span>
410
+ <span class='config identifier id'>config</span> <span class='assign token'>=</span> <span class='YAML constant id'>YAML</span><span class='dot token'>.</span><span class='load_file identifier id'>load_file</span><span class='lparen token'>(</span><span class='File constant id'>File</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='RAILS_ROOT constant id'>RAILS_ROOT</span><span class='comma token'>,</span> <span class='string val'>'config'</span><span class='comma token'>,</span> <span class='string val'>'payments.yml'</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
411
+ <span class='config identifier id'>config</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</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>
412
+ <span class='pos identifier id'>pos</span> <span class='assign token'>=</span> <span class='Pos constant id'>Pos</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
413
+ <span class='@@pos_table ivar id'>@@pos_table</span><span class='lbrack token'>[</span><span class='k identifier id'>k</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='pos identifier id'>pos</span>
414
+ <span class='end end kw'>end</span>
415
+ <span class='end end kw'>end</span>
416
+ </pre>
417
+ </td>
418
+ </tr>
419
+ </table>
420
+ </div>
421
+
422
+ </div>
423
+
424
+ </div>
425
+
426
+ <div id="footer">
427
+ Generated on Tue Aug 17 16:13:28 2010 by
428
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
429
+ 0.5.8 (ruby-1.8.7).
430
+ </div>
431
+
432
+ </body>
433
+ </html>