opentok 0.1.2 → 0.1.3

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.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +34 -113
  3. data/doc/reference.md +122 -0
  4. data/lib/open_tok/exception.rb +3 -6
  5. data/lib/open_tok/request.rb +2 -2
  6. data/lib/open_tok/version.rb +1 -1
  7. data/sample/sample.rb +26 -0
  8. data/spec/cassettes/session.yml +1 -1
  9. data/spec/cassettes/stitchArchive.yml +1 -1
  10. data/spec/opentok_spec.rb +4 -4
  11. metadata +19 -77
  12. data/doc/CHANGES.html +0 -128
  13. data/doc/Gemfile.html +0 -114
  14. data/doc/Hash.html +0 -228
  15. data/doc/LICENCE.html +0 -133
  16. data/doc/Net.html +0 -167
  17. data/doc/Net/HTTP.html +0 -260
  18. data/doc/OpenTok.html +0 -173
  19. data/doc/OpenTok/OpenTokException.html +0 -172
  20. data/doc/OpenTok/OpenTokSDK.html +0 -520
  21. data/doc/OpenTok/RoleConstants.html +0 -190
  22. data/doc/OpenTok/Session.html +0 -284
  23. data/doc/OpenTok/SessionPropertyConstants.html +0 -195
  24. data/doc/Rakefile.html +0 -111
  25. data/doc/created.rid +0 -13
  26. data/doc/images/brick.png +0 -0
  27. data/doc/images/brick_link.png +0 -0
  28. data/doc/images/bug.png +0 -0
  29. data/doc/images/bullet_black.png +0 -0
  30. data/doc/images/bullet_toggle_minus.png +0 -0
  31. data/doc/images/bullet_toggle_plus.png +0 -0
  32. data/doc/images/date.png +0 -0
  33. data/doc/images/find.png +0 -0
  34. data/doc/images/loadingAnimation.gif +0 -0
  35. data/doc/images/macFFBgHack.png +0 -0
  36. data/doc/images/package.png +0 -0
  37. data/doc/images/page_green.png +0 -0
  38. data/doc/images/page_white_text.png +0 -0
  39. data/doc/images/page_white_width.png +0 -0
  40. data/doc/images/plugin.png +0 -0
  41. data/doc/images/ruby.png +0 -0
  42. data/doc/images/tag_green.png +0 -0
  43. data/doc/images/wrench.png +0 -0
  44. data/doc/images/wrench_orange.png +0 -0
  45. data/doc/images/zoom.png +0 -0
  46. data/doc/index.html +0 -100
  47. data/doc/js/darkfish.js +0 -116
  48. data/doc/js/jquery.js +0 -32
  49. data/doc/js/quicksearch.js +0 -114
  50. data/doc/js/thickbox-compressed.js +0 -10
  51. data/doc/lib/monkey_patches_rb.html +0 -52
  52. data/doc/lib/open_tok/exceptions_rb.html +0 -52
  53. data/doc/lib/open_tok/open_tok_sdk_rb.html +0 -64
  54. data/doc/lib/open_tok/session_rb.html +0 -52
  55. data/doc/lib/open_tok/version_rb.html +0 -52
  56. data/doc/lib/opentok_rb.html +0 -70
  57. data/doc/rdoc.css +0 -706
  58. data/doc/spec/opentok_spec_rb.html +0 -54
  59. data/doc/spec/spec_helper_rb.html +0 -54
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentok
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Stijn Mathysen
@@ -11,86 +10,76 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-09-25 00:00:00.000000000 Z
13
+ date: 2014-04-02 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: addressable
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ! '>='
19
+ - - '>='
22
20
  - !ruby/object:Gem::Version
23
21
  version: '0'
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ! '>='
26
+ - - '>='
30
27
  - !ruby/object:Gem::Version
31
28
  version: '0'
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: rake
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
- - - ! '>='
33
+ - - '>='
38
34
  - !ruby/object:Gem::Version
39
35
  version: '0'
40
36
  type: :development
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
- - - ! '>='
40
+ - - '>='
46
41
  - !ruby/object:Gem::Version
47
42
  version: '0'
48
43
  - !ruby/object:Gem::Dependency
49
44
  name: rspec
50
45
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
46
  requirements:
53
- - - ! '>='
47
+ - - '>='
54
48
  - !ruby/object:Gem::Version
55
49
  version: '0'
56
50
  type: :development
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
53
  requirements:
61
- - - ! '>='
54
+ - - '>='
62
55
  - !ruby/object:Gem::Version
63
56
  version: '0'
64
57
  - !ruby/object:Gem::Dependency
65
58
  name: webmock
66
59
  requirement: !ruby/object:Gem::Requirement
67
- none: false
68
60
  requirements:
69
- - - ! '>='
61
+ - - '>='
70
62
  - !ruby/object:Gem::Version
71
63
  version: '0'
72
64
  type: :development
73
65
  prerelease: false
74
66
  version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
67
  requirements:
77
- - - ! '>='
68
+ - - '>='
78
69
  - !ruby/object:Gem::Version
79
70
  version: '0'
80
71
  - !ruby/object:Gem::Dependency
81
72
  name: vcr
82
73
  requirement: !ruby/object:Gem::Requirement
83
- none: false
84
74
  requirements:
85
- - - ! '>='
75
+ - - '>='
86
76
  - !ruby/object:Gem::Version
87
77
  version: '0'
88
78
  type: :development
89
79
  prerelease: false
90
80
  version_requirements: !ruby/object:Gem::Requirement
91
- none: false
92
81
  requirements:
93
- - - ! '>='
82
+ - - '>='
94
83
  - !ruby/object:Gem::Version
95
84
  version: '0'
96
85
  description: OpenTok is an API from TokBox that enables websites to weave live group
@@ -113,54 +102,7 @@ files:
113
102
  - LICENSE
114
103
  - README.md
115
104
  - Rakefile
116
- - doc/CHANGES.html
117
- - doc/Gemfile.html
118
- - doc/Hash.html
119
- - doc/LICENCE.html
120
- - doc/Net.html
121
- - doc/Net/HTTP.html
122
- - doc/OpenTok.html
123
- - doc/OpenTok/OpenTokException.html
124
- - doc/OpenTok/OpenTokSDK.html
125
- - doc/OpenTok/RoleConstants.html
126
- - doc/OpenTok/Session.html
127
- - doc/OpenTok/SessionPropertyConstants.html
128
- - doc/Rakefile.html
129
- - doc/created.rid
130
- - doc/images/brick.png
131
- - doc/images/brick_link.png
132
- - doc/images/bug.png
133
- - doc/images/bullet_black.png
134
- - doc/images/bullet_toggle_minus.png
135
- - doc/images/bullet_toggle_plus.png
136
- - doc/images/date.png
137
- - doc/images/find.png
138
- - doc/images/loadingAnimation.gif
139
- - doc/images/macFFBgHack.png
140
- - doc/images/package.png
141
- - doc/images/page_green.png
142
- - doc/images/page_white_text.png
143
- - doc/images/page_white_width.png
144
- - doc/images/plugin.png
145
- - doc/images/ruby.png
146
- - doc/images/tag_green.png
147
- - doc/images/wrench.png
148
- - doc/images/wrench_orange.png
149
- - doc/images/zoom.png
150
- - doc/index.html
151
- - doc/js/darkfish.js
152
- - doc/js/jquery.js
153
- - doc/js/quicksearch.js
154
- - doc/js/thickbox-compressed.js
155
- - doc/lib/monkey_patches_rb.html
156
- - doc/lib/open_tok/exceptions_rb.html
157
- - doc/lib/open_tok/open_tok_sdk_rb.html
158
- - doc/lib/open_tok/session_rb.html
159
- - doc/lib/open_tok/version_rb.html
160
- - doc/lib/opentok_rb.html
161
- - doc/rdoc.css
162
- - doc/spec/opentok_spec_rb.html
163
- - doc/spec/spec_helper_rb.html
105
+ - doc/reference.md
164
106
  - lib/open_tok/archive.rb
165
107
  - lib/open_tok/archive_timeline_event.rb
166
108
  - lib/open_tok/archive_video_resource.rb
@@ -174,6 +116,7 @@ files:
174
116
  - lib/open_tok/version.rb
175
117
  - lib/opentok.rb
176
118
  - opentok.gemspec
119
+ - sample/sample.rb
177
120
  - spec/cassettes/archives.yml
178
121
  - spec/cassettes/deleteArchive.yml
179
122
  - spec/cassettes/invalidSession.yml
@@ -184,27 +127,26 @@ files:
184
127
  - spec/spec_helper.rb
185
128
  homepage: https://github.com/opentok/Opentok-Ruby-SDK
186
129
  licenses: []
130
+ metadata: {}
187
131
  post_install_message:
188
132
  rdoc_options: []
189
133
  require_paths:
190
134
  - lib
191
135
  required_ruby_version: !ruby/object:Gem::Requirement
192
- none: false
193
136
  requirements:
194
- - - ! '>='
137
+ - - '>='
195
138
  - !ruby/object:Gem::Version
196
139
  version: '0'
197
140
  required_rubygems_version: !ruby/object:Gem::Requirement
198
- none: false
199
141
  requirements:
200
- - - ! '>='
142
+ - - '>='
201
143
  - !ruby/object:Gem::Version
202
144
  version: '0'
203
145
  requirements: []
204
146
  rubyforge_project: opentok
205
- rubygems_version: 1.8.24
147
+ rubygems_version: 2.0.14
206
148
  signing_key:
207
- specification_version: 3
149
+ specification_version: 4
208
150
  summary: OpenTok gem
209
151
  test_files:
210
152
  - spec/cassettes/archives.yml
@@ -1,128 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
-
9
- <title>File: CHANGES [RDoc Documentation]</title>
10
-
11
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
12
-
13
- <script src="./js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="./js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="./js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="./js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file">
24
- <div id="metadata">
25
- <div id="home-metadata">
26
- <div id="home-section" class="section">
27
- <h3 class="section-header">
28
- <a href="./index.html">Home</a>
29
- <a href="./index.html#classes">Classes</a>
30
- <a href="./index.html#methods">Methods</a>
31
- </h3>
32
- </div>
33
- </div>
34
-
35
- <div id="project-metadata">
36
-
37
-
38
- <div id="fileindex-section" class="section project-section">
39
- <h3 class="section-header">Files</h3>
40
- <ul>
41
-
42
- <li class="file"><a href="./CHANGES.html">CHANGES</a></li>
43
-
44
- <li class="file"><a href="./Gemfile.html">Gemfile</a></li>
45
-
46
- <li class="file"><a href="./LICENCE.html">LICENCE</a></li>
47
-
48
- <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
49
-
50
- </ul>
51
- </div>
52
-
53
-
54
- <div id="classindex-section" class="section project-section">
55
- <h3 class="section-header">Class Index
56
- <span class="search-toggle"><img src="./images/find.png"
57
- height="16" width="16" alt="[+]"
58
- title="show/hide quicksearch" /></span></h3>
59
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
60
- <fieldset>
61
- <legend>Quicksearch</legend>
62
- <input type="text" name="quicksearch" value=""
63
- class="quicksearch-field" />
64
- </fieldset>
65
- </form>
66
-
67
- <ul class="link-list">
68
-
69
- <li><a href="./OpenTok.html">OpenTok</a></li>
70
-
71
- <li><a href="./OpenTok/OpenTokException.html">OpenTok::OpenTokException</a></li>
72
-
73
- <li><a href="./OpenTok/OpenTokSDK.html">OpenTok::OpenTokSDK</a></li>
74
-
75
- <li><a href="./OpenTok/RoleConstants.html">OpenTok::RoleConstants</a></li>
76
-
77
- <li><a href="./OpenTok/Session.html">OpenTok::Session</a></li>
78
-
79
- <li><a href="./OpenTok/SessionPropertyConstants.html">OpenTok::SessionPropertyConstants</a></li>
80
-
81
- <li><a href="./Net.html">Net</a></li>
82
-
83
- <li><a href="./Net/HTTP.html">Net::HTTP</a></li>
84
-
85
- <li><a href="./Hash.html">Hash</a></li>
86
-
87
- <li><a href="./Opentok.html">Opentok</a></li>
88
-
89
- </ul>
90
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
91
- </div>
92
-
93
-
94
- </div>
95
- </div>
96
-
97
- <div id="documentation">
98
- <h1>Change Log</h1>
99
- <h2>Version 0.0.2</h2>
100
- <ul>
101
- <li><p>
102
- Code cleanup
103
- </p>
104
- </li>
105
- <li><p>
106
- Included missing files
107
- </p>
108
- </li>
109
- <li><p>
110
- adding basic tests and documentation
111
- </p>
112
- </li>
113
- </ul>
114
- <h2>Version 0.0.1</h2>
115
- <p>
116
- Initial version
117
- </p>
118
-
119
- </div>
120
-
121
- <div id="validator-badges">
122
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
123
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
124
- Rdoc Generator</a> 1.1.6</small>.</p>
125
- </div>
126
- </body>
127
- </html>
128
-
@@ -1,114 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
-
9
- <title>File: Gemfile [RDoc Documentation]</title>
10
-
11
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
12
-
13
- <script src="./js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="./js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="./js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="./js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file">
24
- <div id="metadata">
25
- <div id="home-metadata">
26
- <div id="home-section" class="section">
27
- <h3 class="section-header">
28
- <a href="./index.html">Home</a>
29
- <a href="./index.html#classes">Classes</a>
30
- <a href="./index.html#methods">Methods</a>
31
- </h3>
32
- </div>
33
- </div>
34
-
35
- <div id="project-metadata">
36
-
37
-
38
- <div id="fileindex-section" class="section project-section">
39
- <h3 class="section-header">Files</h3>
40
- <ul>
41
-
42
- <li class="file"><a href="./CHANGES.html">CHANGES</a></li>
43
-
44
- <li class="file"><a href="./Gemfile.html">Gemfile</a></li>
45
-
46
- <li class="file"><a href="./LICENCE.html">LICENCE</a></li>
47
-
48
- <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
49
-
50
- </ul>
51
- </div>
52
-
53
-
54
- <div id="classindex-section" class="section project-section">
55
- <h3 class="section-header">Class Index
56
- <span class="search-toggle"><img src="./images/find.png"
57
- height="16" width="16" alt="[+]"
58
- title="show/hide quicksearch" /></span></h3>
59
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
60
- <fieldset>
61
- <legend>Quicksearch</legend>
62
- <input type="text" name="quicksearch" value=""
63
- class="quicksearch-field" />
64
- </fieldset>
65
- </form>
66
-
67
- <ul class="link-list">
68
-
69
- <li><a href="./OpenTok.html">OpenTok</a></li>
70
-
71
- <li><a href="./OpenTok/OpenTokException.html">OpenTok::OpenTokException</a></li>
72
-
73
- <li><a href="./OpenTok/OpenTokSDK.html">OpenTok::OpenTokSDK</a></li>
74
-
75
- <li><a href="./OpenTok/RoleConstants.html">OpenTok::RoleConstants</a></li>
76
-
77
- <li><a href="./OpenTok/Session.html">OpenTok::Session</a></li>
78
-
79
- <li><a href="./OpenTok/SessionPropertyConstants.html">OpenTok::SessionPropertyConstants</a></li>
80
-
81
- <li><a href="./Net.html">Net</a></li>
82
-
83
- <li><a href="./Net/HTTP.html">Net::HTTP</a></li>
84
-
85
- <li><a href="./Hash.html">Hash</a></li>
86
-
87
- <li><a href="./Opentok.html">Opentok</a></li>
88
-
89
- </ul>
90
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
91
- </div>
92
-
93
-
94
- </div>
95
- </div>
96
-
97
- <div id="documentation">
98
- <p>
99
- source &#8220;<a href="http://rubygems.org">rubygems.org</a>&#8220;
100
- </p>
101
- <p>
102
- # Specify your gem&#8217;s dependencies in opentok.gemspec gemspec
103
- </p>
104
-
105
- </div>
106
-
107
- <div id="validator-badges">
108
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
109
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
110
- Rdoc Generator</a> 1.1.6</small>.</p>
111
- </div>
112
- </body>
113
- </html>
114
-
@@ -1,228 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
-
8
- <title>Class: Hash</title>
9
-
10
- <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="./js/jquery.js" type="text/javascript"
13
- charset="utf-8"></script>
14
- <script src="./js/thickbox-compressed.js" type="text/javascript"
15
- charset="utf-8"></script>
16
- <script src="./js/quicksearch.js" type="text/javascript"
17
- charset="utf-8"></script>
18
- <script src="./js/darkfish.js" type="text/javascript"
19
- charset="utf-8"></script>
20
-
21
- </head>
22
- <body class="class">
23
-
24
- <div id="metadata">
25
- <div id="home-metadata">
26
- <div id="home-section" class="section">
27
- <h3 class="section-header">
28
- <a href="./index.html">Home</a>
29
- <a href="./index.html#classes">Classes</a>
30
- <a href="./index.html#methods">Methods</a>
31
- </h3>
32
- </div>
33
- </div>
34
-
35
- <div id="file-metadata">
36
- <div id="file-list-section" class="section">
37
- <h3 class="section-header">In Files</h3>
38
- <div class="section-body">
39
- <ul>
40
-
41
- <li><a href="./lib/monkey_patches_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
- class="thickbox" title="lib/monkey_patches.rb">lib/monkey_patches.rb</a></li>
43
-
44
- </ul>
45
- </div>
46
- </div>
47
-
48
-
49
- </div>
50
-
51
- <div id="class-metadata">
52
-
53
- <!-- Parent Class -->
54
-
55
- <div id="parent-class-section" class="section">
56
- <h3 class="section-header">Parent</h3>
57
-
58
- <p class="link">Object</p>
59
-
60
- </div>
61
-
62
-
63
- <!-- Namespace Contents -->
64
-
65
-
66
- <!-- Method Quickref -->
67
-
68
- <div id="method-list-section" class="section">
69
- <h3 class="section-header">Methods</h3>
70
- <ul class="link-list">
71
-
72
- <li><a href="#method-i-urlencode">#urlencode</a></li>
73
-
74
- </ul>
75
- </div>
76
-
77
-
78
- <!-- Included Modules -->
79
-
80
- </div>
81
-
82
- <div id="project-metadata">
83
-
84
-
85
- <div id="fileindex-section" class="section project-section">
86
- <h3 class="section-header">Files</h3>
87
- <ul>
88
-
89
- <li class="file"><a href="./CHANGES.html">CHANGES</a></li>
90
-
91
- <li class="file"><a href="./Gemfile.html">Gemfile</a></li>
92
-
93
- <li class="file"><a href="./LICENCE.html">LICENCE</a></li>
94
-
95
- <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
96
-
97
- </ul>
98
- </div>
99
-
100
-
101
- <div id="classindex-section" class="section project-section">
102
- <h3 class="section-header">Class Index
103
- <span class="search-toggle"><img src="./images/find.png"
104
- height="16" width="16" alt="[+]"
105
- title="show/hide quicksearch" /></span></h3>
106
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
107
- <fieldset>
108
- <legend>Quicksearch</legend>
109
- <input type="text" name="quicksearch" value=""
110
- class="quicksearch-field" />
111
- </fieldset>
112
- </form>
113
-
114
- <ul class="link-list">
115
-
116
- <li><a href="./OpenTok.html">OpenTok</a></li>
117
-
118
- <li><a href="./OpenTok/OpenTokException.html">OpenTok::OpenTokException</a></li>
119
-
120
- <li><a href="./OpenTok/OpenTokSDK.html">OpenTok::OpenTokSDK</a></li>
121
-
122
- <li><a href="./OpenTok/RoleConstants.html">OpenTok::RoleConstants</a></li>
123
-
124
- <li><a href="./OpenTok/Session.html">OpenTok::Session</a></li>
125
-
126
- <li><a href="./OpenTok/SessionPropertyConstants.html">OpenTok::SessionPropertyConstants</a></li>
127
-
128
- <li><a href="./Net.html">Net</a></li>
129
-
130
- <li><a href="./Net/HTTP.html">Net::HTTP</a></li>
131
-
132
- <li><a href="./Hash.html">Hash</a></li>
133
-
134
- <li><a href="./Opentok.html">Opentok</a></li>
135
-
136
- </ul>
137
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
138
- </div>
139
-
140
-
141
- </div>
142
- </div>
143
-
144
- <div id="documentation">
145
- <h1 class="class">Hash</h1>
146
-
147
- <div id="description">
148
-
149
- </div>
150
-
151
- <!-- Constants -->
152
-
153
-
154
- <!-- Attributes -->
155
-
156
-
157
- <!-- Methods -->
158
-
159
- <div id="public-instance-method-details" class="method-section section">
160
- <h3 class="section-header">Public Instance Methods</h3>
161
-
162
-
163
- <div id="urlencode-method" class="method-detail ">
164
- <a name="method-i-urlencode"></a>
165
-
166
- <div class="method-heading">
167
-
168
- <span class="method-name">urlencode</span><span
169
- class="method-args">()</span>
170
- <span class="method-click-advice">click to toggle source</span>
171
-
172
- </div>
173
-
174
- <div class="method-description">
175
-
176
- <p>
177
- Adding a urlencode method to the hash class for easy querstring generation
178
- </p>
179
-
180
-
181
-
182
- <div class="method-source-code"
183
- id="urlencode-source">
184
- <pre>
185
- <span class="ruby-comment cmt"># File lib/monkey_patches.rb, line 13</span>
186
- 13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">urlencode</span>
187
- 14: <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">map</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name_value</span><span class="ruby-operator">|</span>
188
- 15: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">name_value</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Array</span>
189
- 16: <span class="ruby-identifier">name_value</span>[<span class="ruby-value">0</span>] = <span class="ruby-constant">CGI</span>.<span class="ruby-identifier">escape</span> <span class="ruby-identifier">name_value</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">to_s</span>
190
- 17: <span class="ruby-identifier">name_value</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-constant">CGI</span>.<span class="ruby-identifier">escape</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span> }
191
- 18: <span class="ruby-identifier">name_value</span>[<span class="ruby-value">1</span>] = <span class="ruby-identifier">name_value</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">join</span> <span class="ruby-value str">&quot;&amp;&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">name_value</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;=&quot;</span>
192
- 19: <span class="ruby-identifier">name_value</span>.<span class="ruby-identifier">join</span> <span class="ruby-value str">'='</span>
193
- 20: <span class="ruby-keyword kw">else</span>
194
- 21: <span class="ruby-identifier">name_value</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-constant">CGI</span>.<span class="ruby-identifier">escape</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span> }.<span class="ruby-identifier">join</span> <span class="ruby-value str">'='</span>
195
- 22: <span class="ruby-keyword kw">end</span>
196
- 23: <span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">join</span> <span class="ruby-value str">'&amp;'</span>
197
- 24: <span class="ruby-keyword kw">end</span></pre>
198
- </div>
199
-
200
- </div>
201
-
202
-
203
-
204
-
205
- </div>
206
-
207
-
208
- </div>
209
-
210
-
211
- </div>
212
-
213
-
214
- <div id="rdoc-debugging-section-dump" class="debugging-section">
215
-
216
- <p>Disabled; run with --debug to generate this.</p>
217
-
218
- </div>
219
-
220
- <div id="validator-badges">
221
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
222
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
223
- Rdoc Generator</a> 1.1.6</small>.</p>
224
- </div>
225
-
226
- </body>
227
- </html>
228
-