callpixelsjs-rails 0.0.1 → 0.0.2
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/lib/callpixelsjs/compile.rb +32 -0
- data/lib/callpixelsjs/rails/version.rb +1 -1
- data/vendor/documentation/javascript/v1/Callpixels.Campaign.html +404 -0
- data/vendor/documentation/javascript/v1/Callpixels.Number.html +1429 -0
- data/vendor/documentation/javascript/v1/campaign.js.html +137 -0
- data/vendor/documentation/javascript/v1/global.html +236 -0
- data/vendor/documentation/javascript/v1/index.html +63 -0
- data/vendor/documentation/javascript/v1/number.js.html +250 -0
- data/vendor/documentation/javascript/v1/scripts/linenumber.js +25 -0
- data/vendor/documentation/javascript/v1/scripts/prettify/Apache-License-2.0.txt +202 -0
- data/vendor/documentation/javascript/v1/scripts/prettify/lang-css.js +2 -0
- data/vendor/documentation/javascript/v1/scripts/prettify/prettify.js +28 -0
- data/vendor/documentation/javascript/v1/styles/jsdoc-default.css +333 -0
- data/vendor/documentation/javascript/v1/styles/prettify-jsdoc.css +111 -0
- data/vendor/documentation/javascript/v1/styles/prettify-tomorrow.css +132 -0
- metadata +29 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e9202aefe0b58256dadaabcd7a9e95683e69778
|
|
4
|
+
data.tar.gz: 0f433a22be23e53b5d2cf3f76759bb7c8bae54e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5dc12ff33ad2ae3f4cf140c369b0d16e0b83c6a705687113af757dcb6b4b8a06a5df41e721886925f8689576c55952409c4576479de6e555f21804ce98217d3
|
|
7
|
+
data.tar.gz: 7b704d17f2d494ee3254ef5a4b0e2581aac32baec01c0595fccf6bcb7f0ac7d0f8d2c095e3d80c826987b1151884d18220ffb698a936e7b35965e9b24a303b1e
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Callpixelsjs
|
|
2
|
+
class Compile
|
|
3
|
+
|
|
4
|
+
class << self
|
|
5
|
+
def perform
|
|
6
|
+
Dir.chdir(root) do |f|
|
|
7
|
+
run("npm install") unless Dir.exist?('./node_modules')
|
|
8
|
+
# compile src
|
|
9
|
+
run("grunt")
|
|
10
|
+
output = 'vendor/assets/javascripts/'
|
|
11
|
+
FileUtils.rm_rf(output)
|
|
12
|
+
FileUtils.mkdir_p(output)
|
|
13
|
+
Dir.glob('dist/*.js'){|f| FileUtils.cp( f, output ) }
|
|
14
|
+
# generate jsdocs
|
|
15
|
+
output = 'vendor/documentation/javascripts/'
|
|
16
|
+
FileUtils.rm_rf(output)
|
|
17
|
+
run("./node_modules/.bin/jsdoc -c config/jsdocs.json")
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def run(command)
|
|
22
|
+
puts(command)
|
|
23
|
+
system(command)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def root
|
|
27
|
+
File.expand_path(File.join(__FILE__, '../../../'))
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>JSDoc: Class: Campaign</title>
|
|
6
|
+
|
|
7
|
+
<script src="scripts/prettify/prettify.js"> </script>
|
|
8
|
+
<script src="scripts/prettify/lang-css.js"> </script>
|
|
9
|
+
<!--[if lt IE 9]>
|
|
10
|
+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
11
|
+
<![endif]-->
|
|
12
|
+
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
|
13
|
+
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
|
|
14
|
+
</head>
|
|
15
|
+
|
|
16
|
+
<body>
|
|
17
|
+
|
|
18
|
+
<div id="main">
|
|
19
|
+
|
|
20
|
+
<h1 class="page-title">Class: Campaign</h1>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
<section>
|
|
27
|
+
|
|
28
|
+
<header>
|
|
29
|
+
<h2>
|
|
30
|
+
Campaign
|
|
31
|
+
</h2>
|
|
32
|
+
|
|
33
|
+
</header>
|
|
34
|
+
|
|
35
|
+
<article>
|
|
36
|
+
<div class="container-overview">
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
<dt>
|
|
42
|
+
<h4 class="name" id="Campaign"><span class="type-signature"></span>new Campaign<span class="signature">(options)</span><span class="type-signature"></span></h4>
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
</dt>
|
|
46
|
+
<dd>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<h5>Parameters:</h5>
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
<table class="params">
|
|
59
|
+
<thead>
|
|
60
|
+
<tr>
|
|
61
|
+
|
|
62
|
+
<th>Name</th>
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
<th>Type</th>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
<th class="last">Description</th>
|
|
72
|
+
</tr>
|
|
73
|
+
</thead>
|
|
74
|
+
|
|
75
|
+
<tbody>
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
<tr>
|
|
79
|
+
|
|
80
|
+
<td class="name"><code>options</code></td>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
<td class="type">
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<span class="param-type">Object</span>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
</td>
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
<td class="description last">
|
|
97
|
+
<h6>Properties</h6>
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<table class="params">
|
|
101
|
+
<thead>
|
|
102
|
+
<tr>
|
|
103
|
+
|
|
104
|
+
<th>Name</th>
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
<th>Type</th>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
<th class="last">Description</th>
|
|
114
|
+
</tr>
|
|
115
|
+
</thead>
|
|
116
|
+
|
|
117
|
+
<tbody>
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
<tr>
|
|
121
|
+
|
|
122
|
+
<td class="name"><code>campaign_key</code></td>
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
<td class="type">
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
<span class="param-type">String</span>
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
</td>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
<td class="description last">Campaign key</td>
|
|
139
|
+
</tr>
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
</tbody>
|
|
143
|
+
</table>
|
|
144
|
+
</td>
|
|
145
|
+
</tr>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
</tbody>
|
|
149
|
+
</table>
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
<dl class="details">
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
<dt class="tag-source">Source:</dt>
|
|
174
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
175
|
+
<a href="campaign.js.html">campaign.js</a>, <a href="campaign.js.html#line12">line 12</a>
|
|
176
|
+
</li></ul></dd>
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
</dl>
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
<h5>Example</h5>
|
|
201
|
+
|
|
202
|
+
<pre class="prettyprint"><code>var campaign = new Callpixels.Campaign({ campaign_key: '67d9fb1917ae8f4eaff36831b41788c3' });</code></pre>
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
</dd>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
</div>
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
<h3 class="subsection-title">Methods</h3>
|
|
226
|
+
|
|
227
|
+
<dl>
|
|
228
|
+
|
|
229
|
+
<dt>
|
|
230
|
+
<h4 class="name" id="request_number"><span class="type-signature"></span>request_number<span class="signature">(tags, callback)</span><span class="type-signature"></span></h4>
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
</dt>
|
|
234
|
+
<dd>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
<div class="description">
|
|
238
|
+
Fetch a campaign number.
|
|
239
|
+
</div>
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
<h5>Parameters:</h5>
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
<table class="params">
|
|
251
|
+
<thead>
|
|
252
|
+
<tr>
|
|
253
|
+
|
|
254
|
+
<th>Name</th>
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
<th>Type</th>
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
<th class="last">Description</th>
|
|
264
|
+
</tr>
|
|
265
|
+
</thead>
|
|
266
|
+
|
|
267
|
+
<tbody>
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
<tr>
|
|
271
|
+
|
|
272
|
+
<td class="name"><code>tags</code></td>
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
<td class="type">
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
<span class="param-type">Object</span>
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
</td>
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
<td class="description last">A collection of tags as key-value pairs. The number returned will match these tags.</td>
|
|
289
|
+
</tr>
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
<tr>
|
|
294
|
+
|
|
295
|
+
<td class="name"><code>callback</code></td>
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
<td class="type">
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
<span class="param-type"><a href="global.html#getNumberCallback">getNumberCallback</a></span>
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
</td>
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
<td class="description last">Callback fired after the request completes.</td>
|
|
312
|
+
</tr>
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
</tbody>
|
|
316
|
+
</table>
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
<dl class="details">
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
<dt class="tag-source">Source:</dt>
|
|
341
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
342
|
+
<a href="campaign.js.html">campaign.js</a>, <a href="campaign.js.html#line24">line 24</a>
|
|
343
|
+
</li></ul></dd>
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
</dl>
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
<h5>Example</h5>
|
|
368
|
+
|
|
369
|
+
<pre class="prettyprint"><code>campaign.request_number({calling_about: 'support'}, function (number) {
|
|
370
|
+
alert(number.get('number'))
|
|
371
|
+
});</code></pre>
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
</dd>
|
|
375
|
+
|
|
376
|
+
</dl>
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
</article>
|
|
383
|
+
|
|
384
|
+
</section>
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
</div>
|
|
390
|
+
|
|
391
|
+
<nav>
|
|
392
|
+
<h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="Callpixels.Campaign.html">Campaign</a></li><li><a href="Callpixels.Number.html">Number</a></li></ul><h3><a href="global.html">Global</a></h3>
|
|
393
|
+
</nav>
|
|
394
|
+
|
|
395
|
+
<br clear="both">
|
|
396
|
+
|
|
397
|
+
<footer>
|
|
398
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> on Wed Aug 13 2014 14:51:39 GMT-0400 (EDT)
|
|
399
|
+
</footer>
|
|
400
|
+
|
|
401
|
+
<script> prettyPrint(); </script>
|
|
402
|
+
<script src="scripts/linenumber.js"> </script>
|
|
403
|
+
</body>
|
|
404
|
+
</html>
|