retreaverjs-rails 0.2.16 → 0.2.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/retreaverjs/compile.rb +8 -2
  3. data/lib/retreaverjs/rails/version.rb +1 -1
  4. data/package.json +12 -8
  5. data/vendor/assets/javascripts/retreaver.min.js +1 -1
  6. data/vendor/documentation/javascript/v1/Retreaver.Campaign.html +290 -331
  7. data/vendor/documentation/javascript/v1/Retreaver.Number.html +731 -843
  8. data/vendor/documentation/javascript/v1/Retreaver.html +134 -157
  9. data/vendor/documentation/javascript/v1/{retreaver_campaign.js.html → campaign.js.html} +17 -18
  10. data/vendor/documentation/javascript/v1/global.html +97 -119
  11. data/vendor/documentation/javascript/v1/index.html +8 -10
  12. data/vendor/documentation/javascript/v1/{retreaver_number.js.html → number.js.html} +7 -8
  13. data/vendor/documentation/javascript/v1/retreaver.js.html +7 -8
  14. data/vendor/documentation/javascript/v1/scripts/linenumber.js +11 -19
  15. data/vendor/documentation/javascript/v1/styles/jsdoc-default.css +129 -193
  16. data/vendor/documentation/javascript/v1/styles/prettify-tomorrow.css +1 -1
  17. metadata +5 -23
  18. data/vendor/documentation/javascript/v1/fonts/OpenSans-Bold-webfont.eot +0 -0
  19. data/vendor/documentation/javascript/v1/fonts/OpenSans-Bold-webfont.svg +0 -1830
  20. data/vendor/documentation/javascript/v1/fonts/OpenSans-Bold-webfont.woff +0 -0
  21. data/vendor/documentation/javascript/v1/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  22. data/vendor/documentation/javascript/v1/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  23. data/vendor/documentation/javascript/v1/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  24. data/vendor/documentation/javascript/v1/fonts/OpenSans-Italic-webfont.eot +0 -0
  25. data/vendor/documentation/javascript/v1/fonts/OpenSans-Italic-webfont.svg +0 -1830
  26. data/vendor/documentation/javascript/v1/fonts/OpenSans-Italic-webfont.woff +0 -0
  27. data/vendor/documentation/javascript/v1/fonts/OpenSans-Light-webfont.eot +0 -0
  28. data/vendor/documentation/javascript/v1/fonts/OpenSans-Light-webfont.svg +0 -1831
  29. data/vendor/documentation/javascript/v1/fonts/OpenSans-Light-webfont.woff +0 -0
  30. data/vendor/documentation/javascript/v1/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  31. data/vendor/documentation/javascript/v1/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  32. data/vendor/documentation/javascript/v1/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  33. data/vendor/documentation/javascript/v1/fonts/OpenSans-Regular-webfont.eot +0 -0
  34. data/vendor/documentation/javascript/v1/fonts/OpenSans-Regular-webfont.svg +0 -1831
  35. data/vendor/documentation/javascript/v1/fonts/OpenSans-Regular-webfont.woff +0 -0
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <title>JSDoc: Class: Campaign</title>
6
-
6
+
7
7
  <script src="scripts/prettify/prettify.js"> </script>
8
8
  <script src="scripts/prettify/lang-css.js"> </script>
9
9
  <!--[if lt IE 9]>
@@ -16,73 +16,72 @@
16
16
  <body>
17
17
 
18
18
  <div id="main">
19
-
19
+
20
20
  <h1 class="page-title">Class: Campaign</h1>
21
-
22
21
 
23
-
22
+
24
23
 
25
24
 
26
25
 
27
26
  <section>
28
-
27
+
29
28
  <header>
29
+ <h2>
30
+ <span class="ancestors"><a href="Retreaver.html">Retreaver</a>.</span>
30
31
 
31
- <h2>
32
- <span class="ancestors"><a href="Retreaver.html">Retreaver</a>.</span>Campaign</h2>
33
-
32
+ Campaign
33
+ </h2>
34
34
 
35
- </header>
35
+ </header>
36
36
 
37
37
  <article>
38
38
  <div class="container-overview">
39
39
 
40
-
41
-
42
40
 
43
-
41
+
42
+
43
+ <dt>
44
44
  <h4 class="name" id="Campaign"><span class="type-signature"></span>new Campaign<span class="signature">(options)</span><span class="type-signature"></span></h4>
45
-
45
+
46
+
47
+ </dt>
48
+ <dd>
49
+
46
50
 
47
51
 
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
- <h5>Parameters:</h5>
59
52
 
53
+
54
+
55
+
56
+
57
+ <h5>Parameters:</h5>
58
+
60
59
 
61
60
  <table class="params">
62
61
  <thead>
63
- <tr>
64
-
65
- <th>Name</th>
66
-
67
-
68
- <th>Type</th>
69
-
70
-
71
-
72
-
73
-
74
- <th class="last">Description</th>
75
- </tr>
76
- </thead>
77
-
78
- <tbody>
79
-
80
-
62
+ <tr>
63
+
64
+ <th>Name</th>
65
+
66
+
67
+ <th>Type</th>
68
+
69
+
70
+
71
+
72
+
73
+ <th class="last">Description</th>
74
+ </tr>
75
+ </thead>
76
+
77
+ <tbody>
78
+
79
+
81
80
  <tr>
82
81
 
83
82
  <td class="name"><code>options</code></td>
84
83
 
85
-
84
+
86
85
  <td class="type">
87
86
 
88
87
 
@@ -91,40 +90,40 @@
91
90
 
92
91
 
93
92
  </td>
94
-
95
93
 
96
-
97
94
 
98
-
95
+
96
+
97
+
99
98
  <td class="description last">
100
99
  <h6>Properties</h6>
101
100
 
102
101
 
103
102
  <table class="params">
104
103
  <thead>
105
- <tr>
106
-
107
- <th>Name</th>
108
-
109
-
110
- <th>Type</th>
111
-
112
-
113
-
114
-
115
-
116
- <th class="last">Description</th>
117
- </tr>
118
- </thead>
119
-
120
- <tbody>
121
-
122
-
104
+ <tr>
105
+
106
+ <th>Name</th>
107
+
108
+
109
+ <th>Type</th>
110
+
111
+
112
+
113
+
114
+
115
+ <th class="last">Description</th>
116
+ </tr>
117
+ </thead>
118
+
119
+ <tbody>
120
+
121
+
123
122
  <tr>
124
123
 
125
124
  <td class="name"><code>campaign_key</code></td>
126
125
 
127
-
126
+
128
127
  <td class="type">
129
128
 
130
129
 
@@ -133,162 +132,147 @@
133
132
 
134
133
 
135
134
  </td>
136
-
137
135
 
138
-
139
136
 
140
-
137
+
138
+
139
+
141
140
  <td class="description last">Campaign key</td>
142
141
  </tr>
143
-
144
-
145
- </tbody>
142
+
143
+
144
+ </tbody>
146
145
  </table>
147
-
148
146
  </td>
149
147
  </tr>
150
-
151
-
152
- </tbody>
148
+
149
+
150
+ </tbody>
153
151
  </table>
154
-
155
-
156
-
157
-
158
-
159
-
152
+
153
+
154
+
160
155
  <dl class="details">
161
-
162
156
 
163
-
157
+
164
158
 
165
-
166
159
 
167
-
168
160
 
169
161
 
170
162
 
171
-
172
163
 
173
-
174
164
 
175
-
176
165
 
177
-
178
166
 
179
-
180
167
 
181
-
182
168
 
183
-
184
169
 
185
-
170
+
171
+
172
+
173
+
186
174
 
187
175
  <dt class="tag-source">Source:</dt>
188
176
  <dd class="tag-source"><ul class="dummy"><li>
189
- <a href="retreaver_campaign.js.html">retreaver/campaign.js</a>, <a href="retreaver_campaign.js.html#line12">line 12</a>
177
+ <a href="campaign.js.html">retreaver/campaign.js</a>, <a href="campaign.js.html#line12">line 12</a>
190
178
  </li></ul></dd>
191
179
 
192
-
193
180
 
194
-
195
181
 
196
-
182
+
183
+
184
+
197
185
 
198
186
  </dl>
199
187
 
188
+
189
+
200
190
 
191
+
201
192
 
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
- <h5>Example</h5>
215
193
 
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <h5>Example</h5>
201
+
216
202
  <pre class="prettyprint"><code>var campaign = new Retreaver.Campaign({ campaign_key: '67d9fb1917ae8f4eaff36831b41788c3' });</code></pre>
217
203
 
218
-
204
+
205
+ </dd>
219
206
 
220
207
 
221
208
  </div>
222
-
223
209
 
224
-
225
210
 
226
-
227
211
 
228
-
229
-
230
-
231
212
 
232
-
233
213
 
234
-
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
235
222
 
236
223
  <h3 class="subsection-title">Methods</h3>
237
-
238
224
 
225
+ <dl>
239
226
 
240
-
227
+ <dt>
228
+ <h4 class="name" id="auto_replace_numbers"><span class="type-signature"></span>auto_replace_numbers<span class="signature">(<span class="optional">tags</span>, callback, error_callback)</span><span class="type-signature"></span></h4>
241
229
 
242
-
243
- <h4 class="name" id="auto_replace_numbers"><span class="type-signature"></span>auto_replace_numbers<span class="signature">(tags<span class="signature-attributes">opt</span>, callback, error_callback)</span><span class="type-signature"></span></h4>
244
-
245
230
 
246
-
247
-
248
-
249
- <div class="description">
250
- Auto replace all numbers on page according to campaign settings
231
+ </dt>
232
+ <dd>
233
+
234
+
235
+ <div class="description">
236
+ Auto replace all numbers on page according to campaign settings
251
237
  Calls campaign.request_number
252
- </div>
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
238
+ </div>
239
+
261
240
 
262
- <h5>Parameters:</h5>
263
241
 
242
+
243
+
244
+
245
+
246
+ <h5>Parameters:</h5>
247
+
264
248
 
265
249
  <table class="params">
266
250
  <thead>
267
- <tr>
268
-
269
- <th>Name</th>
270
-
271
-
272
- <th>Type</th>
273
-
274
-
275
- <th>Attributes</th>
276
-
277
-
278
-
279
-
280
- <th class="last">Description</th>
281
- </tr>
282
- </thead>
283
-
284
- <tbody>
285
-
286
-
251
+ <tr>
252
+
253
+ <th>Name</th>
254
+
255
+
256
+ <th>Type</th>
257
+
258
+
259
+ <th>Argument</th>
260
+
261
+
262
+
263
+
264
+ <th class="last">Description</th>
265
+ </tr>
266
+ </thead>
267
+
268
+ <tbody>
269
+
270
+
287
271
  <tr>
288
272
 
289
273
  <td class="name"><code>tags</code></td>
290
274
 
291
-
275
+
292
276
  <td class="type">
293
277
 
294
278
 
@@ -297,31 +281,31 @@ Calls campaign.request_number
297
281
 
298
282
 
299
283
  </td>
300
-
284
+
301
285
 
302
286
  <td class="attributes">
303
287
 
304
288
  &lt;optional><br>
305
289
 
306
-
290
+
307
291
 
308
-
292
+
309
293
 
310
294
  </td>
311
295
 
312
-
313
296
 
314
-
297
+
298
+
315
299
  <td class="description last">A collection of tags as key-value pairs. The number returned will match these tags.</td>
316
300
  </tr>
317
-
318
-
319
-
301
+
302
+
303
+
320
304
  <tr>
321
305
 
322
306
  <td class="name"><code>callback</code></td>
323
307
 
324
-
308
+
325
309
  <td class="type">
326
310
 
327
311
 
@@ -330,29 +314,29 @@ Calls campaign.request_number
330
314
 
331
315
 
332
316
  </td>
333
-
317
+
334
318
 
335
319
  <td class="attributes">
336
320
 
337
-
321
+
338
322
 
339
-
323
+
340
324
 
341
325
  </td>
342
326
 
343
-
344
327
 
345
-
328
+
329
+
346
330
  <td class="description last">Callback fired if the request completes successfully.</td>
347
331
  </tr>
348
-
349
-
350
-
332
+
333
+
334
+
351
335
  <tr>
352
336
 
353
337
  <td class="name"><code>error_callback</code></td>
354
338
 
355
-
339
+
356
340
  <td class="type">
357
341
 
358
342
 
@@ -361,148 +345,134 @@ Calls campaign.request_number
361
345
 
362
346
 
363
347
  </td>
364
-
348
+
365
349
 
366
350
  <td class="attributes">
367
351
 
368
-
352
+
369
353
 
370
-
354
+
371
355
 
372
356
  </td>
373
357
 
374
-
375
358
 
376
-
359
+
360
+
377
361
  <td class="description last">Callback fired if the request raises an error.</td>
378
362
  </tr>
379
-
380
-
381
- </tbody>
363
+
364
+
365
+ </tbody>
382
366
  </table>
383
-
384
-
385
-
386
-
387
-
388
-
367
+
368
+
369
+
389
370
  <dl class="details">
390
-
391
371
 
392
-
372
+
393
373
 
394
-
395
374
 
396
-
397
375
 
398
376
 
399
377
 
400
-
401
378
 
402
-
403
379
 
404
-
405
380
 
406
-
407
381
 
408
-
409
382
 
410
-
411
383
 
412
-
413
384
 
414
-
385
+
386
+
387
+
388
+
415
389
 
416
390
  <dt class="tag-source">Source:</dt>
417
391
  <dd class="tag-source"><ul class="dummy"><li>
418
- <a href="retreaver_campaign.js.html">retreaver/campaign.js</a>, <a href="retreaver_campaign.js.html#line108">line 108</a>
392
+ <a href="campaign.js.html">retreaver/campaign.js</a>, <a href="campaign.js.html#line108">line 108</a>
419
393
  </li></ul></dd>
420
394
 
421
-
422
395
 
423
-
424
396
 
425
-
397
+
398
+
399
+
426
400
 
427
401
  </dl>
428
402
 
403
+
404
+
429
405
 
406
+
430
407
 
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
- <h5>Example</h5>
444
408
 
409
+
410
+
411
+
412
+
413
+
414
+
415
+ <h5>Example</h5>
416
+
445
417
  <pre class="prettyprint"><code>campaign.auto_replace_numbers({calling_about: 'support'}, function (number) {
446
418
  alert(number.get('number'))
447
419
  }, function(response){
448
420
  alert('something went wrong: ' + response);
449
421
  };</code></pre>
450
422
 
451
-
423
+
424
+ </dd>
452
425
 
453
426
 
454
427
 
455
-
428
+ <dt>
429
+ <h4 class="name" id="request_number"><span class="type-signature"></span>request_number<span class="signature">(<span class="optional">tags</span>, callback, error_callback)</span><span class="type-signature"></span></h4>
456
430
 
457
-
458
- <h4 class="name" id="request_number"><span class="type-signature"></span>request_number<span class="signature">(tags<span class="signature-attributes">opt</span>, callback, error_callback)</span><span class="type-signature"></span></h4>
459
-
431
+
432
+ </dt>
433
+ <dd>
434
+
435
+
436
+ <div class="description">
437
+ Fetch a campaign number.
438
+ </div>
460
439
 
461
440
 
462
-
463
-
464
- <div class="description">
465
- Fetch a campaign number.
466
- </div>
467
-
468
-
469
-
470
-
471
-
472
-
473
-
474
-
475
-
476
- <h5>Parameters:</h5>
477
441
 
442
+
443
+
444
+
445
+
446
+ <h5>Parameters:</h5>
447
+
478
448
 
479
449
  <table class="params">
480
450
  <thead>
481
- <tr>
482
-
483
- <th>Name</th>
484
-
485
-
486
- <th>Type</th>
487
-
488
-
489
- <th>Attributes</th>
490
-
491
-
492
-
493
-
494
- <th class="last">Description</th>
495
- </tr>
496
- </thead>
497
-
498
- <tbody>
499
-
500
-
451
+ <tr>
452
+
453
+ <th>Name</th>
454
+
455
+
456
+ <th>Type</th>
457
+
458
+
459
+ <th>Argument</th>
460
+
461
+
462
+
463
+
464
+ <th class="last">Description</th>
465
+ </tr>
466
+ </thead>
467
+
468
+ <tbody>
469
+
470
+
501
471
  <tr>
502
472
 
503
473
  <td class="name"><code>tags</code></td>
504
474
 
505
-
475
+
506
476
  <td class="type">
507
477
 
508
478
 
@@ -511,31 +481,31 @@ Calls campaign.request_number
511
481
 
512
482
 
513
483
  </td>
514
-
484
+
515
485
 
516
486
  <td class="attributes">
517
487
 
518
488
  &lt;optional><br>
519
489
 
520
-
490
+
521
491
 
522
-
492
+
523
493
 
524
494
  </td>
525
495
 
526
-
527
496
 
528
-
497
+
498
+
529
499
  <td class="description last">A collection of tags as key-value pairs. The number returned will match these tags.</td>
530
500
  </tr>
531
-
532
-
533
-
501
+
502
+
503
+
534
504
  <tr>
535
505
 
536
506
  <td class="name"><code>callback</code></td>
537
507
 
538
-
508
+
539
509
  <td class="type">
540
510
 
541
511
 
@@ -544,29 +514,29 @@ Calls campaign.request_number
544
514
 
545
515
 
546
516
  </td>
547
-
517
+
548
518
 
549
519
  <td class="attributes">
550
520
 
551
-
521
+
552
522
 
553
-
523
+
554
524
 
555
525
  </td>
556
526
 
557
-
558
527
 
559
-
528
+
529
+
560
530
  <td class="description last">Callback fired if the request completes successfully.</td>
561
531
  </tr>
562
-
563
-
564
-
532
+
533
+
534
+
565
535
  <tr>
566
536
 
567
537
  <td class="name"><code>error_callback</code></td>
568
538
 
569
-
539
+
570
540
  <td class="type">
571
541
 
572
542
 
@@ -575,104 +545,93 @@ Calls campaign.request_number
575
545
 
576
546
 
577
547
  </td>
578
-
548
+
579
549
 
580
550
  <td class="attributes">
581
551
 
582
-
552
+
583
553
 
584
-
554
+
585
555
 
586
556
  </td>
587
557
 
588
-
589
558
 
590
-
559
+
560
+
591
561
  <td class="description last">Callback fired if the request raises an error.</td>
592
562
  </tr>
593
-
594
-
595
- </tbody>
563
+
564
+
565
+ </tbody>
596
566
  </table>
597
-
598
-
599
-
600
-
601
-
602
-
567
+
568
+
569
+
603
570
  <dl class="details">
604
-
605
571
 
606
-
572
+
607
573
 
608
-
609
574
 
610
-
611
575
 
612
576
 
613
577
 
614
-
615
578
 
616
-
617
579
 
618
-
619
580
 
620
-
621
581
 
622
-
623
582
 
624
-
625
583
 
626
-
627
584
 
628
-
585
+
586
+
587
+
588
+
629
589
 
630
590
  <dt class="tag-source">Source:</dt>
631
591
  <dd class="tag-source"><ul class="dummy"><li>
632
- <a href="retreaver_campaign.js.html">retreaver/campaign.js</a>, <a href="retreaver_campaign.js.html#line48">line 48</a>
592
+ <a href="campaign.js.html">retreaver/campaign.js</a>, <a href="campaign.js.html#line48">line 48</a>
633
593
  </li></ul></dd>
634
594
 
635
-
636
595
 
637
-
638
596
 
639
-
597
+
598
+
599
+
640
600
 
641
601
  </dl>
642
602
 
603
+
604
+
643
605
 
606
+
644
607
 
645
-
646
-
647
-
648
-
649
-
650
-
651
-
652
-
653
-
654
-
655
-
656
-
657
- <h5>Example</h5>
658
608
 
609
+
610
+
611
+
612
+
613
+
614
+
615
+ <h5>Example</h5>
616
+
659
617
  <pre class="prettyprint"><code>campaign.request_number({calling_about: 'support'}, function (number) {
660
618
  alert(number.get('number'))
661
619
  }, function(response){
662
620
  alert('something went wrong: ' + response);
663
621
  };</code></pre>
664
622
 
665
-
666
-
667
-
668
623
 
624
+ </dd>
669
625
 
626
+ </dl>
627
+
628
+
629
+
670
630
 
671
-
672
631
 
673
632
  </article>
674
633
 
675
- </section>
634
+ </section>
676
635
 
677
636
 
678
637
 
@@ -680,13 +639,13 @@ Calls campaign.request_number
680
639
  </div>
681
640
 
682
641
  <nav>
683
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Retreaver.Campaign.html">Campaign</a></li><li><a href="Retreaver.Number.html">Number</a></li></ul><h3>Namespaces</h3><ul><li><a href="Retreaver.html">Retreaver</a></li></ul><h3><a href="global.html">Global</a></h3>
642
+ <h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="Retreaver.Campaign.html">Campaign</a></li><li><a href="Retreaver.Number.html">Number</a></li></ul><h3>Namespaces</h3><ul><li><a href="Retreaver.html">Retreaver</a></li></ul><h3><a href="global.html">Global</a></h3>
684
643
  </nav>
685
644
 
686
- <br class="clear">
645
+ <br clear="both">
687
646
 
688
647
  <footer>
689
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Feb 16 2017 17:35:24 GMT-0500 (EST)
648
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Dec 01 2022 15:35:46 GMT+0200 (EET)
690
649
  </footer>
691
650
 
692
651
  <script> prettyPrint(); </script>