rabid 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/.rubocop.yml +22 -0
- data/.yardopts +4 -0
- data/.yardopts-dev +6 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +56 -0
- data/LICENSE.txt +21 -0
- data/README.md +15 -0
- data/Rakefile +10 -0
- data/bigipcookie.gemspec +49 -0
- data/bin/rabid +67 -0
- data/bin/rabid_console +7 -0
- data/bin/rabid_setup +6 -0
- data/docs/.nojekyll +0 -0
- data/docs/About.md +11 -0
- data/docs/CHANGELOG.md +1 -0
- data/docs/README.md +13 -0
- data/docs/_coverpage.md +14 -0
- data/docs/_media/logo.png +0 -0
- data/docs/_navbar.md +2 -0
- data/docs/_sidebar.md +15 -0
- data/docs/index.html +31 -0
- data/docs/pages/demo.md +3 -0
- data/docs/pages/documentation.md +34 -0
- data/docs/pages/install.md +60 -0
- data/docs/pages/publishing.md +38 -0
- data/docs/pages/quick-start.md +30 -0
- data/docs/pages/usage.md +53 -0
- data/docs/vendor/docsify.js +1 -0
- data/docs/vendor/plugins/emoji.min.js +1 -0
- data/docs/vendor/plugins/search.min.js +1 -0
- data/docs/vendor/prismjs/components/prism-ruby.min.js +1 -0
- data/docs/vendor/themes/vue.css +1 -0
- data/docs/why.md +46 -0
- data/docs/yard/BigIPCookie/Decode.html +782 -0
- data/docs/yard/BigIPCookie.html +159 -0
- data/docs/yard/Version.html +126 -0
- data/docs/yard/_index.html +138 -0
- data/docs/yard/class_list.html +51 -0
- data/docs/yard/css/common.css +1 -0
- data/docs/yard/css/full_list.css +58 -0
- data/docs/yard/css/style.css +496 -0
- data/docs/yard/file.LICENSE.html +70 -0
- data/docs/yard/file.README.html +109 -0
- data/docs/yard/file_list.html +61 -0
- data/docs/yard/frames.html +17 -0
- data/docs/yard/index.html +109 -0
- data/docs/yard/js/app.js +303 -0
- data/docs/yard/js/full_list.js +216 -0
- data/docs/yard/js/jquery.js +4 -0
- data/docs/yard/method_list.html +99 -0
- data/docs/yard/top-level-namespace.html +112 -0
- data/lib/bigipcookie/version.rb +5 -0
- data/lib/bigipcookie.rb +246 -0
- data/package-lock.json +154 -0
- data/test/test_bigipcookie.rb +54 -0
- metadata +248 -0
@@ -0,0 +1,782 @@
|
|
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: BigIPCookie::Decode
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.20
|
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 = "BigIPCookie::Decode";
|
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 (D)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../BigIPCookie.html" title="BigIPCookie (class)">BigIPCookie</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Decode</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: BigIPCookie::Decode
|
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">BigIPCookie::Decode</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/bigipcookie.rb</dd>
|
98
|
+
</dl>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>The class to decode BigIP cookies</p>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
<div class="examples">
|
113
|
+
<p class="tag_title">Examples:</p>
|
114
|
+
|
115
|
+
|
116
|
+
<pre class="example code"><code><span class='id identifier rubyid_bip'>bip</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../BigIPCookie.html" title="BigIPCookie (class)">BigIPCookie</a></span></span><span class='op'>::</span><span class='const'>Decode</span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="BigIPCookie::Decode#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
117
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CustomeCookieName=vi20010112000000000000000000000030.20480</span><span class='tstring_end'>'</span></span>
|
118
|
+
<span class='rparen'>)</span>
|
119
|
+
<span class='id identifier rubyid_bip'>bip</span><span class='period'>.</span><span class='id identifier rubyid_auto_decode'>auto_decode</span><span class='lparen'>(</span><span class='label'>ipv6compression:</span> <span class='int'>0</span><span class='rparen'>)</span>
|
120
|
+
<span class='id identifier rubyid_bip'>bip</span><span class='period'>.</span><span class='id identifier rubyid_decoded_cookie'>decoded_cookie</span>
|
121
|
+
<span class='id identifier rubyid_bip'>bip</span><span class='period'>.</span><span class='id identifier rubyid_pool_name'>pool_name</span>
|
122
|
+
<span class='id identifier rubyid_bip'>bip</span><span class='period'>.</span><span class='id identifier rubyid_cookie_type'>cookie_type</span></code></pre>
|
123
|
+
|
124
|
+
</div>
|
125
|
+
|
126
|
+
|
127
|
+
</div>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
132
|
+
<ul class="summary">
|
133
|
+
|
134
|
+
<li class="public ">
|
135
|
+
<span class="summary_signature">
|
136
|
+
|
137
|
+
<a href="#cookie_type-instance_method" title="#cookie_type (instance method)">#<strong>cookie_type</strong> ⇒ String </a>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
</span>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
<span class="note title readonly">readonly</span>
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
<span class="summary_desc"><div class='inline'>
|
157
|
+
<p>The type of the cookie.</p>
|
158
|
+
</div></span>
|
159
|
+
|
160
|
+
</li>
|
161
|
+
|
162
|
+
|
163
|
+
<li class="public ">
|
164
|
+
<span class="summary_signature">
|
165
|
+
|
166
|
+
<a href="#decoded_cookie-instance_method" title="#decoded_cookie (instance method)">#<strong>decoded_cookie</strong> ⇒ String </a>
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
</span>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
<span class="note title readonly">readonly</span>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<span class="summary_desc"><div class='inline'>
|
186
|
+
<p>The decoded cookie value.</p>
|
187
|
+
</div></span>
|
188
|
+
|
189
|
+
</li>
|
190
|
+
|
191
|
+
|
192
|
+
<li class="public ">
|
193
|
+
<span class="summary_signature">
|
194
|
+
|
195
|
+
<a href="#pool_name-instance_method" title="#pool_name (instance method)">#<strong>pool_name</strong> ⇒ String </a>
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
</span>
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
<span class="note title readonly">readonly</span>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
<span class="summary_desc"><div class='inline'>
|
215
|
+
<p>The pool name.</p>
|
216
|
+
</div></span>
|
217
|
+
|
218
|
+
</li>
|
219
|
+
|
220
|
+
|
221
|
+
<li class="public ">
|
222
|
+
<span class="summary_signature">
|
223
|
+
|
224
|
+
<a href="#raw_cookie-instance_method" title="#raw_cookie (instance method)">#<strong>raw_cookie</strong> ⇒ String </a>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
</span>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
<span class="note title readonly">readonly</span>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
<span class="summary_desc"><div class='inline'>
|
244
|
+
<p>The raw cookie (as provided).</p>
|
245
|
+
</div></span>
|
246
|
+
|
247
|
+
</li>
|
248
|
+
|
249
|
+
|
250
|
+
</ul>
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
<h2>
|
257
|
+
Instance Method Summary
|
258
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
259
|
+
</h2>
|
260
|
+
|
261
|
+
<ul class="summary">
|
262
|
+
|
263
|
+
<li class="public ">
|
264
|
+
<span class="summary_signature">
|
265
|
+
|
266
|
+
<a href="#auto_decode-instance_method" title="#auto_decode (instance method)">#<strong>auto_decode</strong>(opts = {}) ⇒ Object </a>
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
</span>
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
<span class="summary_desc"><div class='inline'>
|
281
|
+
<p>Automatically decode the raw cookie, detects if there is a cookie key (custom or default) or only the value.</p>
|
282
|
+
</div></span>
|
283
|
+
|
284
|
+
</li>
|
285
|
+
|
286
|
+
|
287
|
+
<li class="public ">
|
288
|
+
<span class="summary_signature">
|
289
|
+
|
290
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(cookie) ⇒ Decode </a>
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
</span>
|
295
|
+
|
296
|
+
|
297
|
+
<span class="note title constructor">constructor</span>
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
<span class="summary_desc"><div class='inline'>
|
307
|
+
<p>A new instance of cookie.</p>
|
308
|
+
</div></span>
|
309
|
+
|
310
|
+
</li>
|
311
|
+
|
312
|
+
|
313
|
+
</ul>
|
314
|
+
|
315
|
+
|
316
|
+
<div id="constructor_details" class="method_details_list">
|
317
|
+
<h2>Constructor Details</h2>
|
318
|
+
|
319
|
+
<div class="method_details first">
|
320
|
+
<h3 class="signature first" id="initialize-instance_method">
|
321
|
+
|
322
|
+
#<strong>initialize</strong>(cookie) ⇒ <tt><span class='object_link'><a href="" title="BigIPCookie::Decode (class)">Decode</a></span></tt>
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
</h3><div class="docstring">
|
329
|
+
<div class="discussion">
|
330
|
+
|
331
|
+
<p>A new instance of cookie</p>
|
332
|
+
|
333
|
+
|
334
|
+
</div>
|
335
|
+
</div>
|
336
|
+
<div class="tags">
|
337
|
+
<p class="tag_title">Parameters:</p>
|
338
|
+
<ul class="param">
|
339
|
+
|
340
|
+
<li>
|
341
|
+
|
342
|
+
<span class='name'>cookie</span>
|
343
|
+
|
344
|
+
|
345
|
+
<span class='type'>(<tt>String</tt>)</span>
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
—
|
350
|
+
<div class='inline'>
|
351
|
+
<p>the raw cookie, either key/value or only the value</p>
|
352
|
+
</div>
|
353
|
+
|
354
|
+
</li>
|
355
|
+
|
356
|
+
</ul>
|
357
|
+
|
358
|
+
|
359
|
+
</div><table class="source_code">
|
360
|
+
<tr>
|
361
|
+
<td>
|
362
|
+
<pre class="lines">
|
363
|
+
|
364
|
+
|
365
|
+
43
|
366
|
+
44
|
367
|
+
45
|
368
|
+
46
|
369
|
+
47
|
370
|
+
48</pre>
|
371
|
+
</td>
|
372
|
+
<td>
|
373
|
+
<pre class="code"><span class="info file"># File 'lib/bigipcookie.rb', line 43</span>
|
374
|
+
|
375
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_cookie'>cookie</span><span class='rparen'>)</span>
|
376
|
+
<span class='ivar'>@raw_cookie</span> <span class='op'>=</span> <span class='id identifier rubyid_cookie'>cookie</span>
|
377
|
+
<span class='ivar'>@pool_name</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
378
|
+
<span class='ivar'>@decoded_cookie</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
379
|
+
<span class='ivar'>@cookie_type</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
380
|
+
<span class='kw'>end</span></pre>
|
381
|
+
</td>
|
382
|
+
</tr>
|
383
|
+
</table>
|
384
|
+
</div>
|
385
|
+
|
386
|
+
</div>
|
387
|
+
|
388
|
+
<div id="instance_attr_details" class="attr_details">
|
389
|
+
<h2>Instance Attribute Details</h2>
|
390
|
+
|
391
|
+
|
392
|
+
<span id=""></span>
|
393
|
+
<div class="method_details first">
|
394
|
+
<h3 class="signature first" id="cookie_type-instance_method">
|
395
|
+
|
396
|
+
#<strong>cookie_type</strong> ⇒ <tt>String</tt> <span class="extras">(readonly)</span>
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
</h3><div class="docstring">
|
403
|
+
<div class="discussion">
|
404
|
+
|
405
|
+
<p>Returns the type of the cookie</p>
|
406
|
+
|
407
|
+
|
408
|
+
</div>
|
409
|
+
</div>
|
410
|
+
<div class="tags">
|
411
|
+
|
412
|
+
<div class="examples">
|
413
|
+
<p class="tag_title">Examples:</p>
|
414
|
+
|
415
|
+
|
416
|
+
<pre class="example code"><code><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>IPv6 pool members in non-default route domains</span><span class='tstring_end'>'</span></span></code></pre>
|
417
|
+
|
418
|
+
</div>
|
419
|
+
|
420
|
+
<p class="tag_title">Returns:</p>
|
421
|
+
<ul class="return">
|
422
|
+
|
423
|
+
<li>
|
424
|
+
|
425
|
+
|
426
|
+
<span class='type'>(<tt>String</tt>)</span>
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
—
|
431
|
+
<div class='inline'>
|
432
|
+
<p>the type of the cookie</p>
|
433
|
+
</div>
|
434
|
+
|
435
|
+
</li>
|
436
|
+
|
437
|
+
</ul>
|
438
|
+
|
439
|
+
</div><table class="source_code">
|
440
|
+
<tr>
|
441
|
+
<td>
|
442
|
+
<pre class="lines">
|
443
|
+
|
444
|
+
|
445
|
+
39
|
446
|
+
40
|
447
|
+
41</pre>
|
448
|
+
</td>
|
449
|
+
<td>
|
450
|
+
<pre class="code"><span class="info file"># File 'lib/bigipcookie.rb', line 39</span>
|
451
|
+
|
452
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cookie_type'>cookie_type</span>
|
453
|
+
<span class='ivar'>@cookie_type</span>
|
454
|
+
<span class='kw'>end</span></pre>
|
455
|
+
</td>
|
456
|
+
</tr>
|
457
|
+
</table>
|
458
|
+
</div>
|
459
|
+
|
460
|
+
|
461
|
+
<span id=""></span>
|
462
|
+
<div class="method_details ">
|
463
|
+
<h3 class="signature " id="decoded_cookie-instance_method">
|
464
|
+
|
465
|
+
#<strong>decoded_cookie</strong> ⇒ <tt>String</tt> <span class="extras">(readonly)</span>
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
</h3><div class="docstring">
|
472
|
+
<div class="discussion">
|
473
|
+
|
474
|
+
<p>Returns the decoded cookie value</p>
|
475
|
+
|
476
|
+
|
477
|
+
</div>
|
478
|
+
</div>
|
479
|
+
<div class="tags">
|
480
|
+
|
481
|
+
<div class="examples">
|
482
|
+
<p class="tag_title">Examples:</p>
|
483
|
+
|
484
|
+
|
485
|
+
<pre class="example code"><code><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>[2001:112::30%3]:80</span><span class='tstring_end'>'</span></span></code></pre>
|
486
|
+
|
487
|
+
</div>
|
488
|
+
|
489
|
+
<p class="tag_title">Returns:</p>
|
490
|
+
<ul class="return">
|
491
|
+
|
492
|
+
<li>
|
493
|
+
|
494
|
+
|
495
|
+
<span class='type'>(<tt>String</tt>)</span>
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
—
|
500
|
+
<div class='inline'>
|
501
|
+
<p>the decoded cookie value</p>
|
502
|
+
</div>
|
503
|
+
|
504
|
+
</li>
|
505
|
+
|
506
|
+
</ul>
|
507
|
+
|
508
|
+
</div><table class="source_code">
|
509
|
+
<tr>
|
510
|
+
<td>
|
511
|
+
<pre class="lines">
|
512
|
+
|
513
|
+
|
514
|
+
34
|
515
|
+
35
|
516
|
+
36</pre>
|
517
|
+
</td>
|
518
|
+
<td>
|
519
|
+
<pre class="code"><span class="info file"># File 'lib/bigipcookie.rb', line 34</span>
|
520
|
+
|
521
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_decoded_cookie'>decoded_cookie</span>
|
522
|
+
<span class='ivar'>@decoded_cookie</span>
|
523
|
+
<span class='kw'>end</span></pre>
|
524
|
+
</td>
|
525
|
+
</tr>
|
526
|
+
</table>
|
527
|
+
</div>
|
528
|
+
|
529
|
+
|
530
|
+
<span id=""></span>
|
531
|
+
<div class="method_details ">
|
532
|
+
<h3 class="signature " id="pool_name-instance_method">
|
533
|
+
|
534
|
+
#<strong>pool_name</strong> ⇒ <tt>String</tt> <span class="extras">(readonly)</span>
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
</h3><div class="docstring">
|
541
|
+
<div class="discussion">
|
542
|
+
|
543
|
+
<p>Returns the pool name</p>
|
544
|
+
|
545
|
+
|
546
|
+
</div>
|
547
|
+
</div>
|
548
|
+
<div class="tags">
|
549
|
+
|
550
|
+
<p class="tag_title">Returns:</p>
|
551
|
+
<ul class="return">
|
552
|
+
|
553
|
+
<li>
|
554
|
+
|
555
|
+
|
556
|
+
<span class='type'>(<tt>String</tt>)</span>
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
—
|
561
|
+
<div class='inline'>
|
562
|
+
<p>the pool name</p>
|
563
|
+
</div>
|
564
|
+
|
565
|
+
</li>
|
566
|
+
|
567
|
+
</ul>
|
568
|
+
|
569
|
+
</div><table class="source_code">
|
570
|
+
<tr>
|
571
|
+
<td>
|
572
|
+
<pre class="lines">
|
573
|
+
|
574
|
+
|
575
|
+
29
|
576
|
+
30
|
577
|
+
31</pre>
|
578
|
+
</td>
|
579
|
+
<td>
|
580
|
+
<pre class="code"><span class="info file"># File 'lib/bigipcookie.rb', line 29</span>
|
581
|
+
|
582
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_pool_name'>pool_name</span>
|
583
|
+
<span class='ivar'>@pool_name</span>
|
584
|
+
<span class='kw'>end</span></pre>
|
585
|
+
</td>
|
586
|
+
</tr>
|
587
|
+
</table>
|
588
|
+
</div>
|
589
|
+
|
590
|
+
|
591
|
+
<span id=""></span>
|
592
|
+
<div class="method_details ">
|
593
|
+
<h3 class="signature " id="raw_cookie-instance_method">
|
594
|
+
|
595
|
+
#<strong>raw_cookie</strong> ⇒ <tt>String</tt> <span class="extras">(readonly)</span>
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
|
600
|
+
|
601
|
+
</h3><div class="docstring">
|
602
|
+
<div class="discussion">
|
603
|
+
|
604
|
+
<p>Returns the raw cookie (as provided)</p>
|
605
|
+
|
606
|
+
|
607
|
+
</div>
|
608
|
+
</div>
|
609
|
+
<div class="tags">
|
610
|
+
|
611
|
+
<div class="examples">
|
612
|
+
<p class="tag_title">Examples:</p>
|
613
|
+
|
614
|
+
|
615
|
+
<pre class="example code"><code><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>BIGipServer~SuperPool=rd3o20010112000000000000000000000030o80</span><span class='tstring_end'>'</span></span></code></pre>
|
616
|
+
|
617
|
+
</div>
|
618
|
+
|
619
|
+
<p class="tag_title">Returns:</p>
|
620
|
+
<ul class="return">
|
621
|
+
|
622
|
+
<li>
|
623
|
+
|
624
|
+
|
625
|
+
<span class='type'>(<tt>String</tt>)</span>
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
—
|
630
|
+
<div class='inline'>
|
631
|
+
<p>the raw cookie (as provided)</p>
|
632
|
+
</div>
|
633
|
+
|
634
|
+
</li>
|
635
|
+
|
636
|
+
</ul>
|
637
|
+
|
638
|
+
</div><table class="source_code">
|
639
|
+
<tr>
|
640
|
+
<td>
|
641
|
+
<pre class="lines">
|
642
|
+
|
643
|
+
|
644
|
+
26
|
645
|
+
27
|
646
|
+
28</pre>
|
647
|
+
</td>
|
648
|
+
<td>
|
649
|
+
<pre class="code"><span class="info file"># File 'lib/bigipcookie.rb', line 26</span>
|
650
|
+
|
651
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_raw_cookie'>raw_cookie</span>
|
652
|
+
<span class='ivar'>@raw_cookie</span>
|
653
|
+
<span class='kw'>end</span></pre>
|
654
|
+
</td>
|
655
|
+
</tr>
|
656
|
+
</table>
|
657
|
+
</div>
|
658
|
+
|
659
|
+
</div>
|
660
|
+
|
661
|
+
|
662
|
+
<div id="instance_method_details" class="method_details_list">
|
663
|
+
<h2>Instance Method Details</h2>
|
664
|
+
|
665
|
+
|
666
|
+
<div class="method_details first">
|
667
|
+
<h3 class="signature first" id="auto_decode-instance_method">
|
668
|
+
|
669
|
+
#<strong>auto_decode</strong>(opts = {}) ⇒ <tt>Object</tt>
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
</h3><div class="docstring">
|
676
|
+
<div class="discussion">
|
677
|
+
|
678
|
+
<div class="note notetag">
|
679
|
+
<strong>Note:</strong>
|
680
|
+
<div class='inline'>
|
681
|
+
<p>.yardopts-dev must be used to get <span class='object_link'>#decode_ip</span> documentation</p>
|
682
|
+
</div>
|
683
|
+
</div>
|
684
|
+
|
685
|
+
|
686
|
+
<p>Automatically decode the raw cookie, detects if there is a cookie key</p>
|
687
|
+
|
688
|
+
<pre class="code ruby"><code class="ruby"><span class='lparen'>(</span><span class='id identifier rubyid_custom'>custom</span> <span class='kw'>or</span> <span class='id identifier rubyid_default'>default</span><span class='rparen'>)</span> <span class='kw'>or</span> <span class='id identifier rubyid_only'>only</span> <span class='id identifier rubyid_the'>the</span> <span class='id identifier rubyid_value'>value</span>
|
689
|
+
</code></pre>
|
690
|
+
|
691
|
+
|
692
|
+
</div>
|
693
|
+
</div>
|
694
|
+
<div class="tags">
|
695
|
+
<p class="tag_title">Parameters:</p>
|
696
|
+
<ul class="param">
|
697
|
+
|
698
|
+
<li>
|
699
|
+
|
700
|
+
<span class='name'>opts</span>
|
701
|
+
|
702
|
+
|
703
|
+
<span class='type'>(<tt>Hahs</tt>)</span>
|
704
|
+
|
705
|
+
|
706
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
707
|
+
|
708
|
+
|
709
|
+
—
|
710
|
+
<div class='inline'>
|
711
|
+
<p>see <span class='object_link'>#decode_ip</span></p>
|
712
|
+
</div>
|
713
|
+
|
714
|
+
</li>
|
715
|
+
|
716
|
+
</ul>
|
717
|
+
|
718
|
+
|
719
|
+
</div><table class="source_code">
|
720
|
+
<tr>
|
721
|
+
<td>
|
722
|
+
<pre class="lines">
|
723
|
+
|
724
|
+
|
725
|
+
223
|
726
|
+
224
|
727
|
+
225
|
728
|
+
226
|
729
|
+
227
|
730
|
+
228
|
731
|
+
229
|
732
|
+
230
|
733
|
+
231
|
734
|
+
232
|
735
|
+
233
|
736
|
+
234
|
737
|
+
235
|
738
|
+
236
|
739
|
+
237
|
740
|
+
238
|
741
|
+
239
|
742
|
+
240</pre>
|
743
|
+
</td>
|
744
|
+
<td>
|
745
|
+
<pre class="code"><span class="info file"># File 'lib/bigipcookie.rb', line 223</span>
|
746
|
+
|
747
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_auto_decode'>auto_decode</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
748
|
+
<span class='kw'>if</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\=</span><span class='regexp_end'>/</span></span><span class='period'>.</span><span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='ivar'>@raw_cookie</span><span class='rparen'>)</span> <span class='comment'># if there is a key
|
749
|
+
</span> <span class='kw'>if</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^BIGipServer</span><span class='regexp_end'>/</span></span><span class='period'>.</span><span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='ivar'>@raw_cookie</span><span class='rparen'>)</span> <span class='comment'># if default cookie name
|
750
|
+
</span> <span class='id identifier rubyid_pool_name'>pool_name</span> <span class='op'>=</span> <span class='id identifier rubyid_retrieve_pool_name'>retrieve_pool_name</span>
|
751
|
+
<span class='id identifier rubyid_cookie_value'>cookie_value</span> <span class='op'>=</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^BIGipServer.+=(.+)</span><span class='regexp_end'>/</span></span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='ivar'>@raw_cookie</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_captures'>captures</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
752
|
+
<span class='id identifier rubyid_decoded_cookie'>decoded_cookie</span> <span class='op'>=</span> <span class='id identifier rubyid_decode_cookie'>decode_cookie</span><span class='lparen'>(</span><span class='id identifier rubyid_cookie_value'>cookie_value</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
753
|
+
<span class='ivar'>@pool_name</span> <span class='op'>=</span> <span class='id identifier rubyid_pool_name'>pool_name</span>
|
754
|
+
<span class='kw'>else</span> <span class='comment'># custom cookie name
|
755
|
+
</span> <span class='id identifier rubyid_cookie_value'>cookie_value</span> <span class='op'>=</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>.+=(.+)</span><span class='regexp_end'>/</span></span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='ivar'>@raw_cookie</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_captures'>captures</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
756
|
+
<span class='id identifier rubyid_decoded_cookie'>decoded_cookie</span> <span class='op'>=</span> <span class='id identifier rubyid_decode_cookie'>decode_cookie</span><span class='lparen'>(</span><span class='id identifier rubyid_cookie_value'>cookie_value</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
757
|
+
<span class='ivar'>@pool_name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>unknown</span><span class='tstring_end'>'</span></span>
|
758
|
+
<span class='kw'>end</span>
|
759
|
+
<span class='kw'>else</span> <span class='comment'># cookie value only
|
760
|
+
</span> <span class='id identifier rubyid_decoded_cookie'>decoded_cookie</span> <span class='op'>=</span> <span class='id identifier rubyid_decode_cookie'>decode_cookie</span><span class='lparen'>(</span><span class='ivar'>@raw_cookie</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
761
|
+
<span class='ivar'>@pool_name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>unknown</span><span class='tstring_end'>'</span></span>
|
762
|
+
<span class='kw'>end</span>
|
763
|
+
<span class='ivar'>@decoded_cookie</span> <span class='op'>=</span> <span class='id identifier rubyid_decoded_cookie'>decoded_cookie</span>
|
764
|
+
<span class='kw'>end</span></pre>
|
765
|
+
</td>
|
766
|
+
</tr>
|
767
|
+
</table>
|
768
|
+
</div>
|
769
|
+
|
770
|
+
</div>
|
771
|
+
|
772
|
+
</div>
|
773
|
+
|
774
|
+
<div id="footer">
|
775
|
+
Generated on Fri Jul 26 19:42:16 2019 by
|
776
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
777
|
+
0.9.20 (ruby-2.6.2).
|
778
|
+
</div>
|
779
|
+
|
780
|
+
</div>
|
781
|
+
</body>
|
782
|
+
</html>
|