bigbluebutton-api-ruby 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,111 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: BigBlueButton::BigBlueButtonException</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">BigBlueButton::BigBlueButtonException</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/bigbluebutton-api_rb.html">
59
- lib/bigbluebutton-api.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Exception
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
-
82
-
83
- </div>
84
-
85
-
86
- </div>
87
-
88
-
89
- <!-- if includes -->
90
-
91
- <div id="section">
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
- <!-- if method_list -->
101
-
102
-
103
- </div>
104
-
105
-
106
- <div id="validator-badges">
107
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
108
- </div>
109
-
110
- </body>
111
- </html>
@@ -1,269 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Hash</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Hash</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/hash_to_xml_rb.html">
59
- lib/hash_to_xml.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
- <div id="description">
82
- <p>
83
- Code from: <a
84
- href="https://gist.github.com/335286">gist.github.com/335286</a> USAGE: <a
85
- href="Hash.html#M000001">Hash.from_xml</a>:(YOUR_XML_STRING) modified from
86
- <a
87
- href="http://stackoverflow.com/questions/1230741/convert-a-nokogiri-document-to-a-ruby-hash/1231297#1231297">stackoverflow.com/questions/1230741/convert-a-nokogiri-document-to-a-ruby-hash/1231297#1231297</a>
88
- </p>
89
-
90
- </div>
91
-
92
-
93
- </div>
94
-
95
- <div id="method-list">
96
- <h3 class="section-bar">Methods</h3>
97
-
98
- <div class="name-list">
99
- <a href="#M000001">from_xml</a>&nbsp;&nbsp;
100
- <a href="#M000003">prepare</a>&nbsp;&nbsp;
101
- <a href="#M000004">to_struct</a>&nbsp;&nbsp;
102
- <a href="#M000002">xml_node_to_hash</a>&nbsp;&nbsp;
103
- </div>
104
- </div>
105
-
106
- </div>
107
-
108
-
109
- <!-- if includes -->
110
-
111
- <div id="section">
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
- <!-- if method_list -->
121
- <div id="methods">
122
- <h3 class="section-bar">Public Class methods</h3>
123
-
124
- <div id="method-M000001" class="method-detail">
125
- <a name="M000001"></a>
126
-
127
- <div class="method-heading">
128
- <a href="#M000001" class="method-signature">
129
- <span class="method-name">from_xml</span><span class="method-args">(xml_io)</span>
130
- </a>
131
- </div>
132
-
133
- <div class="method-description">
134
- <p><a class="source-toggle" href="#"
135
- onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
136
- <div class="method-source-code" id="M000001-source">
137
- <pre>
138
- <span class="ruby-comment cmt"># File lib/hash_to_xml.rb, line 7</span>
139
- 7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">from_xml</span>(<span class="ruby-identifier">xml_io</span>)
140
- 8: <span class="ruby-keyword kw">begin</span>
141
- 9: <span class="ruby-identifier">result</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">xml_io</span>)
142
- 10: <span class="ruby-keyword kw">return</span> { <span class="ruby-identifier">result</span>.<span class="ruby-identifier">root</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">xml_node_to_hash</span>(<span class="ruby-identifier">result</span>.<span class="ruby-identifier">root</span>)}
143
- 11: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
144
- 12: <span class="ruby-identifier">raise</span> <span class="ruby-constant">BigBlueButton</span><span class="ruby-operator">::</span><span class="ruby-constant">BigBlueButtonException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;BigBlueButton error: Impossible to convert XML to hash. Error: #{e.message}&quot;</span>)
145
- 13: <span class="ruby-keyword kw">end</span>
146
- 14: <span class="ruby-keyword kw">end</span>
147
- </pre>
148
- </div>
149
- </div>
150
- </div>
151
-
152
- <div id="method-M000003" class="method-detail">
153
- <a name="M000003"></a>
154
-
155
- <div class="method-heading">
156
- <a href="#M000003" class="method-signature">
157
- <span class="method-name">prepare</span><span class="method-args">(data)</span>
158
- </a>
159
- </div>
160
-
161
- <div class="method-description">
162
- <p><a class="source-toggle" href="#"
163
- onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
164
- <div class="method-source-code" id="M000003-source">
165
- <pre>
166
- <span class="ruby-comment cmt"># File lib/hash_to_xml.rb, line 54</span>
167
- 54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prepare</span>(<span class="ruby-identifier">data</span>)
168
- 55: (<span class="ruby-identifier">data</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">String</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">to_i</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">data</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">data</span>
169
- 56: <span class="ruby-keyword kw">end</span>
170
- </pre>
171
- </div>
172
- </div>
173
- </div>
174
-
175
- <div id="method-M000002" class="method-detail">
176
- <a name="M000002"></a>
177
-
178
- <div class="method-heading">
179
- <a href="#M000002" class="method-signature">
180
- <span class="method-name">xml_node_to_hash</span><span class="method-args">(node)</span>
181
- </a>
182
- </div>
183
-
184
- <div class="method-description">
185
- <p><a class="source-toggle" href="#"
186
- onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
187
- <div class="method-source-code" id="M000002-source">
188
- <pre>
189
- <span class="ruby-comment cmt"># File lib/hash_to_xml.rb, line 16</span>
190
- 16: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">xml_node_to_hash</span>(<span class="ruby-identifier">node</span>)
191
- 17: <span class="ruby-comment cmt"># If we are at the root of the document, start the hash </span>
192
- 18: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">element?</span>
193
- 19: <span class="ruby-identifier">result_hash</span> = {}
194
- 20: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">attributes</span> <span class="ruby-operator">!=</span> {}
195
- 21: <span class="ruby-identifier">result_hash</span>[<span class="ruby-identifier">:attributes</span>] = {}
196
- 22: <span class="ruby-identifier">node</span>.<span class="ruby-identifier">attributes</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span>
197
- 23: <span class="ruby-identifier">result_hash</span>[<span class="ruby-identifier">:attributes</span>][<span class="ruby-identifier">node</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">prepare</span>(<span class="ruby-identifier">node</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">value</span>)
198
- 24: <span class="ruby-keyword kw">end</span>
199
- 25: <span class="ruby-keyword kw">end</span>
200
- 26: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
201
- 27: <span class="ruby-identifier">node</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">child</span><span class="ruby-operator">|</span>
202
- 28: <span class="ruby-identifier">result</span> = <span class="ruby-identifier">xml_node_to_hash</span>(<span class="ruby-identifier">child</span>)
203
- 29:
204
- 30: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">child</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;text&quot;</span>
205
- 31: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">child</span>.<span class="ruby-identifier">next_sibling</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">child</span>.<span class="ruby-identifier">previous_sibling</span>
206
- 32: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">prepare</span>(<span class="ruby-identifier">result</span>)
207
- 33: <span class="ruby-keyword kw">end</span>
208
- 34: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">result_hash</span>[<span class="ruby-identifier">child</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>]
209
- 35: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result_hash</span>[<span class="ruby-identifier">child</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>].<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Object</span><span class="ruby-operator">::</span><span class="ruby-constant">Array</span>)
210
- 36: <span class="ruby-identifier">result_hash</span>[<span class="ruby-identifier">child</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>] <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">prepare</span>(<span class="ruby-identifier">result</span>)
211
- 37: <span class="ruby-keyword kw">else</span>
212
- 38: <span class="ruby-identifier">result_hash</span>[<span class="ruby-identifier">child</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>] = [<span class="ruby-identifier">result_hash</span>[<span class="ruby-identifier">child</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>]] <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">prepare</span>(<span class="ruby-identifier">result</span>)
213
- 39: <span class="ruby-keyword kw">end</span>
214
- 40: <span class="ruby-keyword kw">else</span>
215
- 41: <span class="ruby-identifier">result_hash</span>[<span class="ruby-identifier">child</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">prepare</span>(<span class="ruby-identifier">result</span>)
216
- 42: <span class="ruby-keyword kw">end</span>
217
- 43: <span class="ruby-keyword kw">end</span>
218
- 44:
219
- 45: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result_hash</span>
220
- 46: <span class="ruby-keyword kw">else</span>
221
- 47: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result_hash</span>
222
- 48: <span class="ruby-keyword kw">end</span>
223
- 49: <span class="ruby-keyword kw">else</span>
224
- 50: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">prepare</span>(<span class="ruby-identifier">node</span>.<span class="ruby-identifier">content</span>.<span class="ruby-identifier">to_s</span>)
225
- 51: <span class="ruby-keyword kw">end</span>
226
- 52: <span class="ruby-keyword kw">end</span>
227
- </pre>
228
- </div>
229
- </div>
230
- </div>
231
-
232
- <h3 class="section-bar">Public Instance methods</h3>
233
-
234
- <div id="method-M000004" class="method-detail">
235
- <a name="M000004"></a>
236
-
237
- <div class="method-heading">
238
- <a href="#M000004" class="method-signature">
239
- <span class="method-name">to_struct</span><span class="method-args">(struct_name)</span>
240
- </a>
241
- </div>
242
-
243
- <div class="method-description">
244
- <p><a class="source-toggle" href="#"
245
- onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
246
- <div class="method-source-code" id="M000004-source">
247
- <pre>
248
- <span class="ruby-comment cmt"># File lib/hash_to_xml.rb, line 59</span>
249
- 59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_struct</span>(<span class="ruby-identifier">struct_name</span>)
250
- 60: <span class="ruby-constant">Struct</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">struct_name</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">keys</span>).<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">values</span>)
251
- 61: <span class="ruby-keyword kw">end</span>
252
- </pre>
253
- </div>
254
- </div>
255
- </div>
256
-
257
-
258
- </div>
259
-
260
-
261
- </div>
262
-
263
-
264
- <div id="validator-badges">
265
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
266
- </div>
267
-
268
- </body>
269
- </html>
data/doc/created.rid DELETED
@@ -1 +0,0 @@
1
- Tue, 08 Feb 2011 14:53:59 -0200
@@ -1,133 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>File: LICENSE</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>LICENSE</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>LICENSE
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Tue Feb 08 14:44:52 -0200 2011</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
- <div id="description">
72
- <h2>bigbluebutton-api-ruby</h2>
73
- <p>
74
- Copyright (c) 2011 Leonardo Crauss Daronco
75
- </p>
76
- <p>
77
- Copyright (c) 2010 Joe Kinsella
78
- </p>
79
- <p>
80
- Permission is hereby granted, free of charge, to any person obtaining a
81
- copy of this software and associated documentation files (the
82
- &quot;Software&quot;), to deal in the Software without restriction,
83
- including without limitation the rights to use, copy, modify, merge,
84
- publish, distribute, sublicense, and/or sell copies of the Software, and to
85
- permit persons to whom the Software is furnished to do so, subject to the
86
- following conditions:
87
- </p>
88
- <p>
89
- The above copyright notice and this permission notice shall be included in
90
- all copies or substantial portions of the Software.
91
- </p>
92
- <p>
93
- THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,
94
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
95
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
96
- NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
97
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
98
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
99
- USE OR OTHER DEALINGS IN THE SOFTWARE.
100
- </p>
101
-
102
- </div>
103
-
104
-
105
- </div>
106
-
107
-
108
- </div>
109
-
110
-
111
- <!-- if includes -->
112
-
113
- <div id="section">
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
- <!-- if method_list -->
123
-
124
-
125
- </div>
126
-
127
-
128
- <div id="validator-badges">
129
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
130
- </div>
131
-
132
- </body>
133
- </html>