t2_airtime 0.2.6 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +413 -31
  4. data/Rakefile +23 -3
  5. data/app/controllers/t2_airtime/airtime_controller.rb +102 -102
  6. data/config/routes.rb +8 -8
  7. data/lib/t2_airtime/engine.rb +6 -0
  8. data/lib/t2_airtime/version.rb +1 -1
  9. data/lib/t2_airtime.rb +1 -0
  10. data/spec/dummy/Rakefile +6 -0
  11. data/spec/dummy/app/assets/config/manifest.js +2 -0
  12. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  13. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  14. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  15. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  16. data/spec/dummy/app/controllers/application_controller.rb +2 -0
  17. data/spec/dummy/app/jobs/application_job.rb +2 -0
  18. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  19. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  20. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  21. data/spec/dummy/bin/bundle +3 -0
  22. data/spec/dummy/bin/rails +4 -0
  23. data/spec/dummy/bin/rake +4 -0
  24. data/spec/dummy/bin/setup +27 -0
  25. data/spec/dummy/bin/update +26 -0
  26. data/spec/dummy/config/application.rb +31 -0
  27. data/spec/dummy/config/boot.rb +5 -0
  28. data/spec/dummy/config/cable.yml +10 -0
  29. data/spec/dummy/config/environment.rb +5 -0
  30. data/spec/dummy/config/environments/development.rb +44 -0
  31. data/spec/dummy/config/environments/production.rb +80 -0
  32. data/spec/dummy/config/environments/test.rb +42 -0
  33. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  34. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  35. data/spec/dummy/config/initializers/cors.rb +16 -0
  36. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  37. data/spec/dummy/config/initializers/inflections.rb +16 -0
  38. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  39. data/spec/dummy/config/initializers/wrap_parameters.rb +9 -0
  40. data/spec/dummy/config/locales/en.yml +33 -0
  41. data/spec/dummy/config/puma.rb +56 -0
  42. data/spec/dummy/config/routes.rb +3 -0
  43. data/spec/dummy/config/secrets.yml +32 -0
  44. data/spec/dummy/config/spring.rb +6 -0
  45. data/spec/dummy/config.ru +5 -0
  46. data/spec/dummy/log/development.log +118 -0
  47. data/spec/dummy/log/test.log +0 -0
  48. data/spec/dummy/tmp/restart.txt +0 -0
  49. data/spec/rails_helper.rb +60 -0
  50. data/spec/spec_helper.rb +96 -0
  51. data/spec/t2_airtime_spec.rb +181 -0
  52. metadata +92 -73
  53. data/.gitignore +0 -14
  54. data/.rspec +0 -2
  55. data/.travis.yml +0 -5
  56. data/CODE_OF_CONDUCT.md +0 -74
  57. data/Gemfile +0 -6
  58. data/LICENSE.txt +0 -21
  59. data/doc/T2Airtime/API.html +0 -1152
  60. data/doc/T2Airtime/Account.html +0 -260
  61. data/doc/T2Airtime/AirtimeController.html +0 -491
  62. data/doc/T2Airtime/Base.html +0 -346
  63. data/doc/T2Airtime/ConfigurationError.html +0 -124
  64. data/doc/T2Airtime/Country.html +0 -448
  65. data/doc/T2Airtime/Engine.html +0 -124
  66. data/doc/T2Airtime/Error.html +0 -290
  67. data/doc/T2Airtime/Operator.html +0 -272
  68. data/doc/T2Airtime/Product.html +0 -294
  69. data/doc/T2Airtime/Reply.html +0 -775
  70. data/doc/T2Airtime/Request.html +0 -664
  71. data/doc/T2Airtime/Test.html +0 -221
  72. data/doc/T2Airtime/Transaction.html +0 -426
  73. data/doc/T2Airtime/Util.html +0 -338
  74. data/doc/T2Airtime.html +0 -147
  75. data/doc/_index.html +0 -265
  76. data/doc/class_list.html +0 -51
  77. data/doc/css/common.css +0 -1
  78. data/doc/css/full_list.css +0 -58
  79. data/doc/css/style.css +0 -492
  80. data/doc/file.README.html +0 -172
  81. data/doc/file_list.html +0 -56
  82. data/doc/frames.html +0 -17
  83. data/doc/index.html +0 -172
  84. data/doc/js/app.js +0 -248
  85. data/doc/js/full_list.js +0 -216
  86. data/doc/js/jquery.js +0 -4
  87. data/doc/method_list.html +0 -491
  88. data/doc/top-level-namespace.html +0 -110
  89. data/release +0 -7
  90. data/t2_airtime.gemspec +0 -33
@@ -1,346 +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::Base
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::Base";
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 (B)</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">Base</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::Base
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::Base</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/base.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
- <div id="subclasses">
103
- <h2>Direct Known Subclasses</h2>
104
- <p class="children"><span class='object_link'><a href="API.html" title="T2Airtime::API (class)">API</a></span></p>
105
- </div>
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
- <h2>
115
- Class Method Summary
116
- <small><a href="#" class="summary_toggle">collapse</a></small>
117
- </h2>
118
-
119
- <ul class="summary">
120
-
121
- <li class="public ">
122
- <span class="summary_signature">
123
-
124
- <a href="#api-class_method" title="api (class method)">.<strong>api</strong> &#x21d2; Object </a>
125
-
126
-
127
-
128
- </span>
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
- <span class="summary_desc"><div class='inline'></div></span>
139
-
140
- </li>
141
-
142
-
143
- </ul>
144
-
145
- <h2>
146
- Instance Method Summary
147
- <small><a href="#" class="summary_toggle">collapse</a></small>
148
- </h2>
149
-
150
- <ul class="summary">
151
-
152
- <li class="public ">
153
- <span class="summary_signature">
154
-
155
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(user, password, url) &#x21d2; Base </a>
156
-
157
-
158
-
159
- </span>
160
-
161
-
162
- <span class="note title constructor">constructor</span>
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
- <span class="summary_desc"><div class='inline'>
172
- <p>A new instance of Base.</p>
173
- </div></span>
174
-
175
- </li>
176
-
177
-
178
- <li class="public ">
179
- <span class="summary_signature">
180
-
181
- <a href="#run_action-instance_method" title="#run_action (instance method)">#<strong>run_action</strong>(name, method = :get) &#x21d2; Object </a>
182
-
183
-
184
-
185
- </span>
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
- <span class="summary_desc"><div class='inline'></div></span>
196
-
197
- </li>
198
-
199
-
200
- </ul>
201
-
202
-
203
- <div id="constructor_details" class="method_details_list">
204
- <h2>Constructor Details</h2>
205
-
206
- <div class="method_details first">
207
- <h3 class="signature first" id="initialize-instance_method">
208
-
209
- #<strong>initialize</strong>(user, password, url) &#x21d2; <tt><span class='object_link'><a href="" title="T2Airtime::Base (class)">Base</a></span></tt>
210
-
211
-
212
-
213
-
214
-
215
- </h3><div class="docstring">
216
- <div class="discussion">
217
-
218
- <p>Returns a new instance of Base</p>
219
-
220
-
221
- </div>
222
- </div>
223
- <div class="tags">
224
-
225
-
226
- </div><table class="source_code">
227
- <tr>
228
- <td>
229
- <pre class="lines">
230
-
231
-
232
- 4
233
- 5
234
- 6</pre>
235
- </td>
236
- <td>
237
- <pre class="code"><span class="info file"># File 'lib/t2_airtime/base.rb', line 4</span>
238
-
239
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_user'>user</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
240
- <span class='ivar'>@user</span><span class='comma'>,</span> <span class='ivar'>@password</span><span class='comma'>,</span> <span class='ivar'>@url</span><span class='comma'>,</span> <span class='ivar'>@params</span> <span class='op'>=</span> <span class='id identifier rubyid_user'>user</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
241
- <span class='kw'>end</span></pre>
242
- </td>
243
- </tr>
244
- </table>
245
- </div>
246
-
247
- </div>
248
-
249
-
250
- <div id="class_method_details" class="method_details_list">
251
- <h2>Class Method Details</h2>
252
-
253
-
254
- <div class="method_details first">
255
- <h3 class="signature first" id="api-class_method">
256
-
257
- .<strong>api</strong> &#x21d2; <tt>Object</tt>
258
-
259
-
260
-
261
-
262
-
263
- </h3><table class="source_code">
264
- <tr>
265
- <td>
266
- <pre class="lines">
267
-
268
-
269
- 8
270
- 9
271
- 10
272
- 11
273
- 12
274
- 13
275
- 14</pre>
276
- </td>
277
- <td>
278
- <pre class="code"><span class="info file"># File 'lib/t2_airtime/base.rb', line 8</span>
279
-
280
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_api'>api</span>
281
- <span class='ivar'>@api</span> <span class='op'>||=</span> <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
282
- <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>T2_SHOP_USER</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
283
- <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>T2_AIRTIME_KEY</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
284
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>https://</span><span class='embexpr_beg'>#{</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="../T2Airtime.html#AIRTIME_DN-constant" title="T2Airtime::AIRTIME_DN (constant)">AIRTIME_DN</a></span></span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</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="../T2Airtime.html#DOMAIN-constant" title="T2Airtime::DOMAIN (constant)">DOMAIN</a></span></span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</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="../T2Airtime.html#ENDPOINT-constant" title="T2Airtime::ENDPOINT (constant)">ENDPOINT</a></span></span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
285
- <span class='rparen'>)</span>
286
- <span class='kw'>end</span></pre>
287
- </td>
288
- </tr>
289
- </table>
290
- </div>
291
-
292
- </div>
293
-
294
- <div id="instance_method_details" class="method_details_list">
295
- <h2>Instance Method Details</h2>
296
-
297
-
298
- <div class="method_details first">
299
- <h3 class="signature first" id="run_action-instance_method">
300
-
301
- #<strong>run_action</strong>(name, method = :get) &#x21d2; <tt>Object</tt>
302
-
303
-
304
-
305
-
306
-
307
- </h3><table class="source_code">
308
- <tr>
309
- <td>
310
- <pre class="lines">
311
-
312
-
313
- 16
314
- 17
315
- 18
316
- 19
317
- 20
318
- 21</pre>
319
- </td>
320
- <td>
321
- <pre class="code"><span class="info file"># File 'lib/t2_airtime/base.rb', line 16</span>
322
-
323
- <span class='kw'>def</span> <span class='id identifier rubyid_run_action'>run_action</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_method'>method</span><span class='op'>=</span><span class='symbol'>:get</span><span class='rparen'>)</span>
324
- <span class='id identifier rubyid_request'>request</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="Request.html" title="T2Airtime::Request (class)">Request</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Request.html#initialize-instance_method" title="T2Airtime::Request#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='ivar'>@user</span><span class='comma'>,</span> <span class='ivar'>@password</span><span class='comma'>,</span> <span class='ivar'>@url</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='ivar'>@params</span><span class='rparen'>)</span>
325
- <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_on_complete'>on_complete</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_reply'>reply</span><span class='op'>|</span>
326
- <span class='kw'>return</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="Reply.html" title="T2Airtime::Reply (class)">Reply</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Reply.html#initialize-instance_method" title="T2Airtime::Reply#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_reply'>reply</span><span class='rparen'>)</span>
327
- <span class='kw'>end</span>
328
- <span class='kw'>end</span></pre>
329
- </td>
330
- </tr>
331
- </table>
332
- </div>
333
-
334
- </div>
335
-
336
- </div>
337
-
338
- <div id="footer">
339
- Generated on Sun Aug 27 17:54:43 2017 by
340
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
341
- 0.9.9 (ruby-2.3.3).
342
- </div>
343
-
344
- </div>
345
- </body>
346
- </html>
@@ -1,124 +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
- Exception: T2Airtime::ConfigurationError
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::ConfigurationError";
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 (C)</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">ConfigurationError</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>Exception: T2Airtime::ConfigurationError
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">StandardError</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">StandardError</li>
78
-
79
- <li class="next">T2Airtime::ConfigurationError</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/t2_airtime/errors.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
- </div>
115
-
116
- <div id="footer">
117
- Generated on Sun Aug 27 17:54:43 2017 by
118
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.9.9 (ruby-2.3.3).
120
- </div>
121
-
122
- </div>
123
- </body>
124
- </html>