t2_airtime 0.2.6 → 0.3.0
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.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -0
- data/README.md +413 -31
- data/Rakefile +23 -3
- data/app/controllers/t2_airtime/airtime_controller.rb +102 -102
- data/config/routes.rb +8 -8
- data/lib/t2_airtime/engine.rb +6 -0
- data/lib/t2_airtime/version.rb +1 -1
- data/lib/t2_airtime.rb +1 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/config/manifest.js +2 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +2 -0
- data/spec/dummy/app/jobs/application_job.rb +2 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +27 -0
- data/spec/dummy/bin/update +26 -0
- data/spec/dummy/config/application.rb +31 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +44 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cors.rb +16 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +9 -0
- data/spec/dummy/config/locales/en.yml +33 -0
- data/spec/dummy/config/puma.rb +56 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/secrets.yml +32 -0
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/dummy/config.ru +5 -0
- data/spec/dummy/log/development.log +118 -0
- data/spec/dummy/log/test.log +0 -0
- data/spec/dummy/tmp/restart.txt +0 -0
- data/spec/rails_helper.rb +60 -0
- data/spec/spec_helper.rb +96 -0
- data/spec/t2_airtime_spec.rb +181 -0
- metadata +92 -73
- data/.gitignore +0 -14
- data/.rspec +0 -2
- data/.travis.yml +0 -5
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -6
- data/LICENSE.txt +0 -21
- data/doc/T2Airtime/API.html +0 -1152
- data/doc/T2Airtime/Account.html +0 -260
- data/doc/T2Airtime/AirtimeController.html +0 -491
- data/doc/T2Airtime/Base.html +0 -346
- data/doc/T2Airtime/ConfigurationError.html +0 -124
- data/doc/T2Airtime/Country.html +0 -448
- data/doc/T2Airtime/Engine.html +0 -124
- data/doc/T2Airtime/Error.html +0 -290
- data/doc/T2Airtime/Operator.html +0 -272
- data/doc/T2Airtime/Product.html +0 -294
- data/doc/T2Airtime/Reply.html +0 -775
- data/doc/T2Airtime/Request.html +0 -664
- data/doc/T2Airtime/Test.html +0 -221
- data/doc/T2Airtime/Transaction.html +0 -426
- data/doc/T2Airtime/Util.html +0 -338
- data/doc/T2Airtime.html +0 -147
- data/doc/_index.html +0 -265
- data/doc/class_list.html +0 -51
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -58
- data/doc/css/style.css +0 -492
- data/doc/file.README.html +0 -172
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -17
- data/doc/index.html +0 -172
- data/doc/js/app.js +0 -248
- data/doc/js/full_list.js +0 -216
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -491
- data/doc/top-level-namespace.html +0 -110
- data/release +0 -7
- data/t2_airtime.gemspec +0 -33
data/doc/T2Airtime/Product.html
DELETED
@@ -1,294 +0,0 @@
|
|
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::Product
|
8
|
-
|
9
|
-
— 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::Product";
|
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 (P)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../T2Airtime.html" title="T2Airtime (module)">T2Airtime</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">Product</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::Product
|
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::Product</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) ⇒ 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="#take-class_method" title="take (class method)">.<strong>take</strong>(operator_qty = 1, qty = 5) ⇒ 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
|
-
</ul>
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
<div id="class_method_details" class="method_details_list">
|
167
|
-
<h2>Class Method Details</h2>
|
168
|
-
|
169
|
-
|
170
|
-
<div class="method_details first">
|
171
|
-
<h3 class="signature first" id="serialize-class_method">
|
172
|
-
|
173
|
-
.<strong>serialize</strong>(data, qty = nil) ⇒ <tt>Object</tt>
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
</h3><table class="source_code">
|
180
|
-
<tr>
|
181
|
-
<td>
|
182
|
-
<pre class="lines">
|
183
|
-
|
184
|
-
|
185
|
-
112
|
186
|
-
113
|
187
|
-
114
|
188
|
-
115
|
189
|
-
116
|
190
|
-
117
|
191
|
-
118
|
192
|
-
119
|
193
|
-
120
|
194
|
-
121
|
195
|
-
122
|
196
|
-
123
|
197
|
-
124
|
198
|
-
125
|
199
|
-
126
|
200
|
-
127
|
201
|
-
128
|
202
|
-
129
|
203
|
-
130
|
204
|
-
131
|
205
|
-
132
|
206
|
-
133
|
207
|
-
134</pre>
|
208
|
-
</td>
|
209
|
-
<td>
|
210
|
-
<pre class="code"><span class="info file"># File 'lib/t2_airtime/serializer.rb', line 112</span>
|
211
|
-
|
212
|
-
<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>
|
213
|
-
<span class='id identifier rubyid_currency'>currency</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:destination_currency</span><span class='rbracket'>]</span>
|
214
|
-
<span class='id identifier rubyid_retail_prices'>retail_prices</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:retail_price_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'>"</span><span class='tstring_content'>,</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
215
|
-
<span class='id identifier rubyid_wholesale_prices'>wholesale_prices</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:wholesale_price_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'>"</span><span class='tstring_content'>,</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
216
|
-
<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'>:product_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'>"</span><span class='tstring_content'>,</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
217
|
-
<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_with_index'>each_with_index</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='comma'>,</span> <span class='id identifier rubyid_n'>n</span><span class='op'>|</span> <span class='lbrace'>{</span>
|
218
|
-
<span class='label'>country:</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:country</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
219
|
-
<span class='label'>country_aid:</span> <span class='const'>Integer</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:countryid</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
|
220
|
-
<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_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:country</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
|
221
|
-
<span class='label'>operator:</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:operator</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
222
|
-
<span class='label'>operator_aid:</span> <span class='const'>Integer</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:operatorid</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
|
223
|
-
<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_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:operatorid</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
|
224
|
-
<span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_id'>id</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_currency'>currency</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
225
|
-
<span class='label'>currency:</span> <span class='id identifier rubyid_currency'>currency</span><span class='comma'>,</span>
|
226
|
-
<span class='label'>local_price:</span> <span class='const'>Float</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span><span class='comma'>,</span>
|
227
|
-
<span class='label'>retail_price:</span> <span class='const'>Float</span><span class='lparen'>(</span><span class='id identifier rubyid_retail_prices'>retail_prices</span><span class='lbracket'>[</span><span class='id identifier rubyid_n'>n</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
|
228
|
-
<span class='label'>wholesale_price:</span> <span class='const'>Float</span><span class='lparen'>(</span><span class='id identifier rubyid_wholesale_prices'>wholesale_prices</span><span class='lbracket'>[</span><span class='id identifier rubyid_n'>n</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
|
229
|
-
<span class='label'>local_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_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_currency'>currency</span><span class='rparen'>)</span><span class='comma'>,</span>
|
230
|
-
<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_retail_prices'>retail_prices</span><span class='lbracket'>[</span><span class='id identifier rubyid_n'>n</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
|
231
|
-
<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_wholesale_prices'>wholesale_prices</span><span class='lbracket'>[</span><span class='id identifier rubyid_n'>n</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
|
232
|
-
<span class='label'>aid:</span> <span class='const'>Integer</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
|
233
|
-
<span class='rbrace'>}</span><span class='rbrace'>}</span>
|
234
|
-
<span class='kw'>end</span></pre>
|
235
|
-
</td>
|
236
|
-
</tr>
|
237
|
-
</table>
|
238
|
-
</div>
|
239
|
-
|
240
|
-
<div class="method_details ">
|
241
|
-
<h3 class="signature " id="take-class_method">
|
242
|
-
|
243
|
-
.<strong>take</strong>(operator_qty = 1, qty = 5) ⇒ <tt>Object</tt>
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
</h3><table class="source_code">
|
250
|
-
<tr>
|
251
|
-
<td>
|
252
|
-
<pre class="lines">
|
253
|
-
|
254
|
-
|
255
|
-
102
|
256
|
-
103
|
257
|
-
104
|
258
|
-
105
|
259
|
-
106
|
260
|
-
107
|
261
|
-
108
|
262
|
-
109
|
263
|
-
110</pre>
|
264
|
-
</td>
|
265
|
-
<td>
|
266
|
-
<pre class="code"><span class="info file"># File 'lib/t2_airtime/serializer.rb', line 102</span>
|
267
|
-
|
268
|
-
<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_operator_qty'>operator_qty</span><span class='op'>=</span><span class='int'>1</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>
|
269
|
-
<span class='id identifier rubyid_operators'>operators</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="Operator.html" title="T2Airtime::Operator (class)">Operator</a></span></span><span class='period'>.</span><span class='id identifier rubyid_take'><span class='object_link'><a href="Operator.html#take-class_method" title="T2Airtime::Operator.take (method)">take</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_operator_qty'>operator_qty</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_shuffle'>shuffle</span>
|
270
|
-
<span class='kw'>unless</span> <span class='id identifier rubyid_operators'>operators</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
271
|
-
<span class='id identifier rubyid_operators'>operators</span><span class='period'>.</span><span class='id identifier rubyid_flat_map'>flat_map</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_operator'>operator</span><span class='op'>|</span> <span class='lparen'>(</span>
|
272
|
-
<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_product_list'>product_list</span><span class='lparen'>(</span><span class='id identifier rubyid_operator'>operator</span><span class='lbracket'>[</span><span class='symbol'>:aid</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
273
|
-
<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>
|
274
|
-
<span class='rparen'>)</span><span class='rbrace'>}</span>
|
275
|
-
<span class='kw'>end</span>
|
276
|
-
<span class='kw'>end</span></pre>
|
277
|
-
</td>
|
278
|
-
</tr>
|
279
|
-
</table>
|
280
|
-
</div>
|
281
|
-
|
282
|
-
</div>
|
283
|
-
|
284
|
-
</div>
|
285
|
-
|
286
|
-
<div id="footer">
|
287
|
-
Generated on Sun Aug 27 17:54:44 2017 by
|
288
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
289
|
-
0.9.9 (ruby-2.3.3).
|
290
|
-
</div>
|
291
|
-
|
292
|
-
</div>
|
293
|
-
</body>
|
294
|
-
</html>
|