t2_airtime 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,426 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: T2Airtime::Transaction
8
+
9
+ &mdash; Documentation by YARD 0.9.9
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "T2Airtime::Transaction";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (T)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../T2Airtime.html" title="T2Airtime (module)">T2Airtime</a></span></span>
41
+ &raquo;
42
+ <span class="title">Transaction</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: T2Airtime::Transaction
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">T2Airtime::Transaction</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/t2_airtime/serializer.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ <h2>
111
+ Class Method Summary
112
+ <small><a href="#" class="summary_toggle">collapse</a></small>
113
+ </h2>
114
+
115
+ <ul class="summary">
116
+
117
+ <li class="public ">
118
+ <span class="summary_signature">
119
+
120
+ <a href="#serialize-class_method" title="serialize (class method)">.<strong>serialize</strong>(data, qty = nil) &#x21d2; Object </a>
121
+
122
+
123
+
124
+ </span>
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+ <span class="summary_desc"><div class='inline'></div></span>
135
+
136
+ </li>
137
+
138
+
139
+ <li class="public ">
140
+ <span class="summary_signature">
141
+
142
+ <a href="#serialize_one-class_method" title="serialize_one (class method)">.<strong>serialize_one</strong>(t) &#x21d2; Object </a>
143
+
144
+
145
+
146
+ </span>
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+ <span class="summary_desc"><div class='inline'></div></span>
157
+
158
+ </li>
159
+
160
+
161
+ <li class="public ">
162
+ <span class="summary_signature">
163
+
164
+ <a href="#show-class_method" title="show (class method)">.<strong>show</strong>(id) &#x21d2; Object </a>
165
+
166
+
167
+
168
+ </span>
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+ <span class="summary_desc"><div class='inline'></div></span>
179
+
180
+ </li>
181
+
182
+
183
+ <li class="public ">
184
+ <span class="summary_signature">
185
+
186
+ <a href="#take-class_method" title="take (class method)">.<strong>take</strong>(start, stop, msisdn = nil, destination = nil, code = nil, qty = 5) &#x21d2; Object </a>
187
+
188
+
189
+
190
+ </span>
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <span class="summary_desc"><div class='inline'></div></span>
201
+
202
+ </li>
203
+
204
+
205
+ </ul>
206
+
207
+
208
+
209
+
210
+ <div id="class_method_details" class="method_details_list">
211
+ <h2>Class Method Details</h2>
212
+
213
+
214
+ <div class="method_details first">
215
+ <h3 class="signature first" id="serialize-class_method">
216
+
217
+ .<strong>serialize</strong>(data, qty = nil) &#x21d2; <tt>Object</tt>
218
+
219
+
220
+
221
+
222
+
223
+ </h3><table class="source_code">
224
+ <tr>
225
+ <td>
226
+ <pre class="lines">
227
+
228
+
229
+ 145
230
+ 146
231
+ 147
232
+ 148</pre>
233
+ </td>
234
+ <td>
235
+ <pre class="code"><span class="info file"># File 'lib/t2_airtime/serializer.rb', line 145</span>
236
+
237
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_serialize'>serialize</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_qty'>qty</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
238
+ <span class='id identifier rubyid_ids'>ids</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:transaction_list</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>,</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
239
+ <span class='id identifier rubyid_ids'>ids</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='op'>?</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='op'>:</span> <span class='id identifier rubyid_ids'>ids</span><span class='period'>.</span><span class='id identifier rubyid_take'>take</span><span class='lparen'>(</span><span class='id identifier rubyid_qty'>qty</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='id identifier rubyid_ids'>ids</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span> <span class='op'>:</span> <span class='id identifier rubyid_qty'>qty</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_id'>id</span><span class='op'>|</span> <span class='id identifier rubyid_show'>show</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
240
+ <span class='kw'>end</span></pre>
241
+ </td>
242
+ </tr>
243
+ </table>
244
+ </div>
245
+
246
+ <div class="method_details ">
247
+ <h3 class="signature " id="serialize_one-class_method">
248
+
249
+ .<strong>serialize_one</strong>(t) &#x21d2; <tt>Object</tt>
250
+
251
+
252
+
253
+
254
+
255
+ </h3><table class="source_code">
256
+ <tr>
257
+ <td>
258
+ <pre class="lines">
259
+
260
+
261
+ 156
262
+ 157
263
+ 158
264
+ 159
265
+ 160
266
+ 161
267
+ 162
268
+ 163
269
+ 164
270
+ 165
271
+ 166
272
+ 167
273
+ 168
274
+ 169
275
+ 170
276
+ 171
277
+ 172
278
+ 173
279
+ 174
280
+ 175
281
+ 176
282
+ 177
283
+ 178
284
+ 179
285
+ 180
286
+ 181
287
+ 182
288
+ 183
289
+ 184
290
+ 185
291
+ 186
292
+ 187
293
+ 188
294
+ 189
295
+ 190
296
+ 191
297
+ 192
298
+ 193
299
+ 194
300
+ 195</pre>
301
+ </td>
302
+ <td>
303
+ <pre class="code"><span class="info file"># File 'lib/t2_airtime/serializer.rb', line 156</span>
304
+
305
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_serialize_one'>serialize_one</span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='rparen'>)</span>
306
+ <span class='lbrace'>{</span>
307
+ <span class='label'>id:</span> <span class='const'>Integer</span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:transactionid</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
308
+ <span class='label'>msisdn:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:msisdn</span><span class='rbracket'>]</span><span class='comma'>,</span>
309
+ <span class='label'>destination_msisdn:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:destination_msisdn</span><span class='rbracket'>]</span><span class='comma'>,</span>
310
+ <span class='label'>transaction_authentication_key:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:transaction_authentication_key</span><span class='rbracket'>]</span><span class='comma'>,</span>
311
+ <span class='label'>transaction_error_code:</span> <span class='const'>Integer</span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:transaction_error_code</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
312
+ <span class='label'>transaction_error_txt:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:transaction_error_txt</span><span class='rbracket'>]</span><span class='comma'>,</span>
313
+ <span class='label'>country:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:country</span><span class='rbracket'>]</span><span class='comma'>,</span>
314
+ <span class='label'>country_aid:</span> <span class='const'>Integer</span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:countryid</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
315
+ <span class='label'>alpha3:</span> <span class='const'><span class='object_link'><a href="../T2Airtime.html" title="T2Airtime (module)">T2Airtime</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Country.html" title="T2Airtime::Country (class)">Country</a></span></span><span class='period'>.</span><span class='id identifier rubyid_alpha3'><span class='object_link'><a href="Country.html#alpha3-class_method" title="T2Airtime::Country.alpha3 (method)">alpha3</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:country</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
316
+ <span class='label'>operator:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:operator</span><span class='rbracket'>]</span><span class='comma'>,</span>
317
+ <span class='label'>operator_aid:</span> <span class='const'>Integer</span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:operatorid</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
318
+ <span class='label'>operator_logo_url:</span> <span class='const'><span class='object_link'><a href="../T2Airtime.html" title="T2Airtime (module)">T2Airtime</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Util.html" title="T2Airtime::Util (class)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_operator_logo_url'><span class='object_link'><a href="Util.html#operator_logo_url-class_method" title="T2Airtime::Util.operator_logo_url (method)">operator_logo_url</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:operatorid</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
319
+ <span class='label'>reference_operator:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:reference_operator</span><span class='rbracket'>]</span><span class='comma'>,</span>
320
+ <span class='label'>product_requested:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:product_requested</span><span class='rbracket'>]</span><span class='comma'>,</span>
321
+ <span class='label'>product_requested_display:</span> <span class='const'><span class='object_link'><a href="../T2Airtime.html" title="T2Airtime (module)">T2Airtime</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Util.html" title="T2Airtime::Util (class)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_format_price'><span class='object_link'><a href="Util.html#format_price-class_method" title="T2Airtime::Util.format_price (method)">format_price</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:product_requested</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:destination_currency</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
322
+ <span class='label'>actual_product_sent:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:actual_product_sent</span><span class='rbracket'>]</span><span class='comma'>,</span>
323
+ <span class='label'>actual_product_sent_display:</span> <span class='const'><span class='object_link'><a href="../T2Airtime.html" title="T2Airtime (module)">T2Airtime</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Util.html" title="T2Airtime::Util (class)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_format_price'><span class='object_link'><a href="Util.html#format_price-class_method" title="T2Airtime::Util.format_price (method)">format_price</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:actual_product_sent</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:destination_currency</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
324
+ <span class='label'>wholesale_price:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:wholesale_price</span><span class='rbracket'>]</span><span class='comma'>,</span>
325
+ <span class='label'>wholesale_price_display:</span> <span class='const'><span class='object_link'><a href="../T2Airtime.html" title="T2Airtime (module)">T2Airtime</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Util.html" title="T2Airtime::Util (class)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_format_price'><span class='object_link'><a href="Util.html#format_price-class_method" title="T2Airtime::Util.format_price (method)">format_price</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:wholesale_price</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:originating_currency</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
326
+ <span class='label'>retail_price:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:retail_price</span><span class='rbracket'>]</span><span class='comma'>,</span>
327
+ <span class='label'>retail_price_display:</span> <span class='const'><span class='object_link'><a href="../T2Airtime.html" title="T2Airtime (module)">T2Airtime</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Util.html" title="T2Airtime::Util (class)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_format_price'><span class='object_link'><a href="Util.html#format_price-class_method" title="T2Airtime::Util.format_price (method)">format_price</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:retail_price</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:originating_currency</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
328
+ <span class='label'>sms:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:sms</span><span class='rbracket'>]</span><span class='comma'>,</span>
329
+ <span class='label'>cid1:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:cid1</span><span class='rbracket'>]</span><span class='comma'>,</span>
330
+ <span class='label'>cid2:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:cid2</span><span class='rbracket'>]</span><span class='comma'>,</span>
331
+ <span class='label'>cid3:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:cid3</span><span class='rbracket'>]</span><span class='comma'>,</span>
332
+ <span class='label'>date:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:date</span><span class='rbracket'>]</span><span class='comma'>,</span>
333
+ <span class='label'>originating_currency:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:originating_currency</span><span class='rbracket'>]</span><span class='comma'>,</span>
334
+ <span class='label'>destination_currency:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:destination_currency</span><span class='rbracket'>]</span><span class='comma'>,</span>
335
+ <span class='label'>pin_based:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:pin_based</span><span class='rbracket'>]</span><span class='comma'>,</span>
336
+ <span class='label'>local_info_amount:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:local_info_amount</span><span class='rbracket'>]</span><span class='comma'>,</span>
337
+ <span class='label'>local_info_amount_display:</span> <span class='const'><span class='object_link'><a href="../T2Airtime.html" title="T2Airtime (module)">T2Airtime</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Util.html" title="T2Airtime::Util (class)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_format_price'><span class='object_link'><a href="Util.html#format_price-class_method" title="T2Airtime::Util.format_price (method)">format_price</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:local_info_amount</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:local_info_currency</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
338
+ <span class='label'>local_info_currency:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:local_info_currency</span><span class='rbracket'>]</span><span class='comma'>,</span>
339
+ <span class='label'>local_info_value:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:local_info_value</span><span class='rbracket'>]</span><span class='comma'>,</span>
340
+ <span class='label'>local_info_value_display:</span> <span class='const'><span class='object_link'><a href="../T2Airtime.html" title="T2Airtime (module)">T2Airtime</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Util.html" title="T2Airtime::Util (class)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_format_price'><span class='object_link'><a href="Util.html#format_price-class_method" title="T2Airtime::Util.format_price (method)">format_price</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:local_info_value</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:local_info_currency</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
341
+ <span class='label'>error_code:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:error_code</span><span class='rbracket'>]</span><span class='comma'>,</span>
342
+ <span class='label'>error_txt:</span> <span class='id identifier rubyid_t'>t</span><span class='lbracket'>[</span><span class='symbol'>:error_txt</span><span class='rbracket'>]</span>
343
+ <span class='rbrace'>}</span>
344
+ <span class='kw'>end</span></pre>
345
+ </td>
346
+ </tr>
347
+ </table>
348
+ </div>
349
+
350
+ <div class="method_details ">
351
+ <h3 class="signature " id="show-class_method">
352
+
353
+ .<strong>show</strong>(id) &#x21d2; <tt>Object</tt>
354
+
355
+
356
+
357
+
358
+
359
+ </h3><table class="source_code">
360
+ <tr>
361
+ <td>
362
+ <pre class="lines">
363
+
364
+
365
+ 151
366
+ 152
367
+ 153
368
+ 154</pre>
369
+ </td>
370
+ <td>
371
+ <pre class="code"><span class="info file"># File 'lib/t2_airtime/serializer.rb', line 151</span>
372
+
373
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_show'>show</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
374
+ <span class='id identifier rubyid_reply'>reply</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../T2Airtime.html" title="T2Airtime (module)">T2Airtime</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="API.html" title="T2Airtime::API (class)">API</a></span></span><span class='period'>.</span><span class='id identifier rubyid_api'><span class='object_link'><a href="Base.html#api-class_method" title="T2Airtime::Base.api (method)">api</a></span></span><span class='period'>.</span><span class='id identifier rubyid_trans_info'>trans_info</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
375
+ <span class='id identifier rubyid_reply'>reply</span><span class='period'>.</span><span class='id identifier rubyid_success?'>success?</span> <span class='op'>?</span> <span class='id identifier rubyid_serialize_one'>serialize_one</span><span class='lparen'>(</span><span class='id identifier rubyid_reply'>reply</span><span class='period'>.</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
376
+ <span class='kw'>end</span></pre>
377
+ </td>
378
+ </tr>
379
+ </table>
380
+ </div>
381
+
382
+ <div class="method_details ">
383
+ <h3 class="signature " id="take-class_method">
384
+
385
+ .<strong>take</strong>(start, stop, msisdn = nil, destination = nil, code = nil, qty = 5) &#x21d2; <tt>Object</tt>
386
+
387
+
388
+
389
+
390
+
391
+ </h3><table class="source_code">
392
+ <tr>
393
+ <td>
394
+ <pre class="lines">
395
+
396
+
397
+ 140
398
+ 141
399
+ 142
400
+ 143</pre>
401
+ </td>
402
+ <td>
403
+ <pre class="code"><span class="info file"># File 'lib/t2_airtime/serializer.rb', line 140</span>
404
+
405
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_take'>take</span><span class='lparen'>(</span><span class='id identifier rubyid_start'>start</span><span class='comma'>,</span> <span class='id identifier rubyid_stop'>stop</span><span class='comma'>,</span> <span class='id identifier rubyid_msisdn'>msisdn</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_destination'>destination</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_code'>code</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_qty'>qty</span><span class='op'>=</span><span class='int'>5</span><span class='rparen'>)</span>
406
+ <span class='id identifier rubyid_reply'>reply</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../T2Airtime.html" title="T2Airtime (module)">T2Airtime</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="API.html" title="T2Airtime::API (class)">API</a></span></span><span class='period'>.</span><span class='id identifier rubyid_api'><span class='object_link'><a href="Base.html#api-class_method" title="T2Airtime::Base.api (method)">api</a></span></span><span class='period'>.</span><span class='id identifier rubyid_trans_list'>trans_list</span><span class='lparen'>(</span><span class='id identifier rubyid_start'>start</span><span class='comma'>,</span> <span class='id identifier rubyid_stop'>stop</span><span class='comma'>,</span> <span class='id identifier rubyid_msisdn'>msisdn</span><span class='comma'>,</span> <span class='id identifier rubyid_destination'>destination</span><span class='comma'>,</span> <span class='id identifier rubyid_code'>code</span><span class='rparen'>)</span>
407
+ <span class='id identifier rubyid_reply'>reply</span><span class='period'>.</span><span class='id identifier rubyid_success?'>success?</span> <span class='op'>?</span> <span class='id identifier rubyid_serialize'>serialize</span><span class='lparen'>(</span><span class='id identifier rubyid_reply'>reply</span><span class='period'>.</span><span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_qty'>qty</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
408
+ <span class='kw'>end</span></pre>
409
+ </td>
410
+ </tr>
411
+ </table>
412
+ </div>
413
+
414
+ </div>
415
+
416
+ </div>
417
+
418
+ <div id="footer">
419
+ Generated on Sun Aug 27 17:54:44 2017 by
420
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
421
+ 0.9.9 (ruby-2.3.3).
422
+ </div>
423
+
424
+ </div>
425
+ </body>
426
+ </html>