myexperiment-rest 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -1
- data/README +2 -2
- data/Rakefile +3 -3
- metadata +7 -50
- data/doc/rdoc/CHANGES.html +0 -168
- data/doc/rdoc/LICENSE.html +0 -127
- data/doc/rdoc/MyExperimentREST.html +0 -271
- data/doc/rdoc/MyExperimentREST/MyExperimentIOData.html +0 -319
- data/doc/rdoc/MyExperimentREST/MyExperimentUser.html +0 -405
- data/doc/rdoc/MyExperimentREST/MyExperimentWorkflow.html +0 -369
- data/doc/rdoc/MyExperimentREST/SessionCookie.html +0 -216
- data/doc/rdoc/MyExperimentREST/Urls.html +0 -175
- data/doc/rdoc/MyExperimentREST/User.html +0 -262
- data/doc/rdoc/MyExperimentREST/Workflow.html +0 -271
- data/doc/rdoc/README.html +0 -145
- data/doc/rdoc/created.rid +0 -9
- data/doc/rdoc/images/brick.png +0 -0
- data/doc/rdoc/images/brick_link.png +0 -0
- data/doc/rdoc/images/bug.png +0 -0
- data/doc/rdoc/images/bullet_black.png +0 -0
- data/doc/rdoc/images/bullet_toggle_minus.png +0 -0
- data/doc/rdoc/images/bullet_toggle_plus.png +0 -0
- data/doc/rdoc/images/date.png +0 -0
- data/doc/rdoc/images/find.png +0 -0
- data/doc/rdoc/images/loadingAnimation.gif +0 -0
- data/doc/rdoc/images/macFFBgHack.png +0 -0
- data/doc/rdoc/images/package.png +0 -0
- data/doc/rdoc/images/page_green.png +0 -0
- data/doc/rdoc/images/page_white_text.png +0 -0
- data/doc/rdoc/images/page_white_width.png +0 -0
- data/doc/rdoc/images/plugin.png +0 -0
- data/doc/rdoc/images/ruby.png +0 -0
- data/doc/rdoc/images/tag_green.png +0 -0
- data/doc/rdoc/images/wrench.png +0 -0
- data/doc/rdoc/images/wrench_orange.png +0 -0
- data/doc/rdoc/images/zoom.png +0 -0
- data/doc/rdoc/index.html +0 -142
- data/doc/rdoc/js/darkfish.js +0 -116
- data/doc/rdoc/js/jquery.js +0 -32
- data/doc/rdoc/js/quicksearch.js +0 -114
- data/doc/rdoc/js/thickbox-compressed.js +0 -10
- data/doc/rdoc/lib/myexperiment-rest/authentication_rb.html +0 -54
- data/doc/rdoc/lib/myexperiment-rest/constants_rb.html +0 -52
- data/doc/rdoc/lib/myexperiment-rest/user_rb.html +0 -54
- data/doc/rdoc/lib/myexperiment-rest/workflow_rb.html +0 -54
- data/doc/rdoc/lib/myexperiment-rest_rb.html +0 -64
- data/doc/rdoc/rdoc.css +0 -763
@@ -1,319 +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: MyExperimentREST::MyExperimentIOData</title>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
-
|
12
|
-
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
-
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
-
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
-
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
-
|
17
|
-
</head>
|
18
|
-
<body id="top" class="class">
|
19
|
-
|
20
|
-
<div id="metadata">
|
21
|
-
<div id="home-metadata">
|
22
|
-
<div id="home-section" class="section">
|
23
|
-
<h3 class="section-header">
|
24
|
-
<a href="../index.html">Home</a>
|
25
|
-
<a href="../index.html#classes">Classes</a>
|
26
|
-
<a href="../index.html#methods">Methods</a>
|
27
|
-
</h3>
|
28
|
-
</div>
|
29
|
-
</div>
|
30
|
-
|
31
|
-
<div id="file-metadata">
|
32
|
-
<div id="file-list-section" class="section">
|
33
|
-
<h3 class="section-header">In Files</h3>
|
34
|
-
<div class="section-body">
|
35
|
-
<ul>
|
36
|
-
|
37
|
-
<li><a href="../lib/myexperiment-rest/workflow_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
-
class="thickbox" title="lib/myexperiment-rest/workflow.rb">lib/myexperiment-rest/workflow.rb</a></li>
|
39
|
-
|
40
|
-
</ul>
|
41
|
-
</div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
|
45
|
-
</div>
|
46
|
-
|
47
|
-
<div id="class-metadata">
|
48
|
-
|
49
|
-
<!-- Parent Class -->
|
50
|
-
<div id="parent-class-section" class="section">
|
51
|
-
<h3 class="section-header">Parent</h3>
|
52
|
-
|
53
|
-
<p class="link">Object</p>
|
54
|
-
|
55
|
-
</div>
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
<!-- Method Quickref -->
|
64
|
-
<div id="method-list-section" class="section">
|
65
|
-
<h3 class="section-header">Methods</h3>
|
66
|
-
<ul class="link-list">
|
67
|
-
|
68
|
-
<li><a href="#method-c-from_xml">::from_xml</a></li>
|
69
|
-
|
70
|
-
<li><a href="#method-c-new">::new</a></li>
|
71
|
-
|
72
|
-
</ul>
|
73
|
-
</div>
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<div id="project-metadata">
|
80
|
-
|
81
|
-
|
82
|
-
<div id="fileindex-section" class="section project-section">
|
83
|
-
<h3 class="section-header">Files</h3>
|
84
|
-
<ul>
|
85
|
-
|
86
|
-
<li class="file"><a href="../CHANGES.html">CHANGES</a></li>
|
87
|
-
|
88
|
-
<li class="file"><a href="../LICENSE.html">LICENSE</a></li>
|
89
|
-
|
90
|
-
<li class="file"><a href="../README.html">README</a></li>
|
91
|
-
|
92
|
-
</ul>
|
93
|
-
</div>
|
94
|
-
|
95
|
-
|
96
|
-
<div id="classindex-section" class="section project-section">
|
97
|
-
<h3 class="section-header">Class/Module Index
|
98
|
-
<span class="search-toggle"><img src="../images/find.png"
|
99
|
-
height="16" width="16" alt="[+]"
|
100
|
-
title="show/hide quicksearch" /></span></h3>
|
101
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
102
|
-
<fieldset>
|
103
|
-
<legend>Quicksearch</legend>
|
104
|
-
<input type="text" name="quicksearch" value=""
|
105
|
-
class="quicksearch-field" />
|
106
|
-
</fieldset>
|
107
|
-
</form>
|
108
|
-
|
109
|
-
<ul class="link-list">
|
110
|
-
|
111
|
-
<li><a href="../MyExperimentREST.html">MyExperimentREST</a></li>
|
112
|
-
|
113
|
-
<li><a href="../MyExperimentREST/MyExperimentIOData.html">MyExperimentREST::MyExperimentIOData</a></li>
|
114
|
-
|
115
|
-
<li><a href="../MyExperimentREST/MyExperimentUser.html">MyExperimentREST::MyExperimentUser</a></li>
|
116
|
-
|
117
|
-
<li><a href="../MyExperimentREST/MyExperimentWorkflow.html">MyExperimentREST::MyExperimentWorkflow</a></li>
|
118
|
-
|
119
|
-
<li><a href="../MyExperimentREST/SessionCookie.html">MyExperimentREST::SessionCookie</a></li>
|
120
|
-
|
121
|
-
<li><a href="../MyExperimentREST/Urls.html">MyExperimentREST::Urls</a></li>
|
122
|
-
|
123
|
-
<li><a href="../MyExperimentREST/User.html">MyExperimentREST::User</a></li>
|
124
|
-
|
125
|
-
<li><a href="../MyExperimentREST/Workflow.html">MyExperimentREST::Workflow</a></li>
|
126
|
-
|
127
|
-
</ul>
|
128
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
129
|
-
</div>
|
130
|
-
|
131
|
-
|
132
|
-
</div>
|
133
|
-
</div>
|
134
|
-
|
135
|
-
<div id="documentation">
|
136
|
-
<h1 class="class">MyExperimentREST::MyExperimentIOData</h1>
|
137
|
-
|
138
|
-
<div id="description" class="description">
|
139
|
-
|
140
|
-
<p>Contains all available information about an input or output: name,
|
141
|
-
descriptions and examples. The last two are lists.</p>
|
142
|
-
|
143
|
-
</div><!-- description -->
|
144
|
-
|
145
|
-
|
146
|
-
<div id="5Buntitled-5D" class="documentation-section">
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
<!-- Attributes -->
|
155
|
-
<div id="attribute-method-details" class="method-section section">
|
156
|
-
<h3 class="section-header">Attributes</h3>
|
157
|
-
|
158
|
-
|
159
|
-
<div id="descriptions-attribute-method" class="method-detail">
|
160
|
-
<a name="descriptions"></a>
|
161
|
-
|
162
|
-
<div class="method-heading attribute-method-heading">
|
163
|
-
<span class="method-name">descriptions</span><span
|
164
|
-
class="attribute-access-type">[R]</span>
|
165
|
-
</div>
|
166
|
-
|
167
|
-
<div class="method-description">
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
</div>
|
172
|
-
</div>
|
173
|
-
|
174
|
-
<div id="examples-attribute-method" class="method-detail">
|
175
|
-
<a name="examples"></a>
|
176
|
-
|
177
|
-
<div class="method-heading attribute-method-heading">
|
178
|
-
<span class="method-name">examples</span><span
|
179
|
-
class="attribute-access-type">[R]</span>
|
180
|
-
</div>
|
181
|
-
|
182
|
-
<div class="method-description">
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
</div>
|
187
|
-
</div>
|
188
|
-
|
189
|
-
<div id="name-attribute-method" class="method-detail">
|
190
|
-
<a name="name"></a>
|
191
|
-
|
192
|
-
<div class="method-heading attribute-method-heading">
|
193
|
-
<span class="method-name">name</span><span
|
194
|
-
class="attribute-access-type">[R]</span>
|
195
|
-
</div>
|
196
|
-
|
197
|
-
<div class="method-description">
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
</div>
|
202
|
-
</div>
|
203
|
-
|
204
|
-
</div><!-- attribute-method-details -->
|
205
|
-
|
206
|
-
|
207
|
-
<!-- Methods -->
|
208
|
-
|
209
|
-
<div id="public-class-method-details" class="method-section section">
|
210
|
-
<h3 class="section-header">Public Class Methods</h3>
|
211
|
-
|
212
|
-
|
213
|
-
<div id="from_xml-method" class="method-detail ">
|
214
|
-
<a name="method-c-from_xml"></a>
|
215
|
-
|
216
|
-
|
217
|
-
<div class="method-heading">
|
218
|
-
<span class="method-name">from_xml</span><span
|
219
|
-
class="method-args">(xml_node)</span>
|
220
|
-
<span class="method-click-advice">click to toggle source</span>
|
221
|
-
</div>
|
222
|
-
|
223
|
-
|
224
|
-
<div class="method-description">
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
<div class="method-source-code" id="from_xml-source">
|
231
|
-
<pre>
|
232
|
-
<span class="ruby-comment"># File lib/myexperiment-rest/workflow.rb, line 113</span>
|
233
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">from_xml</span>(<span class="ruby-identifier">xml_node</span>)
|
234
|
-
<span class="ruby-identifier">name</span> = <span class="ruby-string">''</span>
|
235
|
-
<span class="ruby-identifier">descriptions</span> = []
|
236
|
-
<span class="ruby-identifier">examples</span> = []
|
237
|
-
|
238
|
-
<span class="ruby-identifier">xml_node</span>.<span class="ruby-identifier">each_element</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span>
|
239
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">eql?</span> <span class="ruby-string">"name"</span>
|
240
|
-
<span class="ruby-identifier">name</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">children</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">to_s</span>
|
241
|
-
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">eql?</span> <span class="ruby-string">"descriptions"</span>
|
242
|
-
<span class="ruby-identifier">n</span>.<span class="ruby-identifier">each_element</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span class="ruby-operator">|</span>
|
243
|
-
<span class="ruby-identifier">descriptions</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">children</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">to_s</span>
|
244
|
-
<span class="ruby-keyword">end</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">children?</span>
|
245
|
-
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">eql?</span> <span class="ruby-string">"examples"</span>
|
246
|
-
<span class="ruby-identifier">n</span>.<span class="ruby-identifier">each_element</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span>
|
247
|
-
<span class="ruby-identifier">examples</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">children</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">to_s</span>
|
248
|
-
<span class="ruby-keyword">end</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">children?</span>
|
249
|
-
<span class="ruby-keyword">end</span>
|
250
|
-
<span class="ruby-keyword">end</span>
|
251
|
-
|
252
|
-
|
253
|
-
<span class="ruby-identifier">new</span>(
|
254
|
-
<span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">name</span>,
|
255
|
-
<span class="ruby-value">:descriptions</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">descriptions</span>,
|
256
|
-
<span class="ruby-value">:examples</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">examples</span>)
|
257
|
-
|
258
|
-
<span class="ruby-keyword">end</span></pre>
|
259
|
-
</div><!-- from_xml-source -->
|
260
|
-
|
261
|
-
</div>
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
</div><!-- from_xml-method -->
|
267
|
-
|
268
|
-
|
269
|
-
<div id="new-method" class="method-detail ">
|
270
|
-
<a name="method-c-new"></a>
|
271
|
-
|
272
|
-
|
273
|
-
<div class="method-heading">
|
274
|
-
<span class="method-name">new</span><span
|
275
|
-
class="method-args">(attributes)</span>
|
276
|
-
<span class="method-click-advice">click to toggle source</span>
|
277
|
-
</div>
|
278
|
-
|
279
|
-
|
280
|
-
<div class="method-description">
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
<div class="method-source-code" id="new-source">
|
287
|
-
<pre>
|
288
|
-
<span class="ruby-comment"># File lib/myexperiment-rest/workflow.rb, line 107</span>
|
289
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">attributes</span>)
|
290
|
-
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:name</span>]
|
291
|
-
<span class="ruby-ivar">@descriptions</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:descriptions</span>]
|
292
|
-
<span class="ruby-ivar">@examples</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:examples</span>]
|
293
|
-
<span class="ruby-keyword">end</span></pre>
|
294
|
-
</div><!-- new-source -->
|
295
|
-
|
296
|
-
</div>
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
</div><!-- new-method -->
|
302
|
-
|
303
|
-
|
304
|
-
</div><!-- public-class-method-details -->
|
305
|
-
|
306
|
-
</div><!-- 5Buntitled-5D -->
|
307
|
-
|
308
|
-
|
309
|
-
</div><!-- documentation -->
|
310
|
-
|
311
|
-
<div id="validator-badges">
|
312
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
313
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
314
|
-
Rdoc Generator</a> 2</small>.</p>
|
315
|
-
</div>
|
316
|
-
|
317
|
-
</body>
|
318
|
-
</html>
|
319
|
-
|
@@ -1,405 +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: MyExperimentREST::MyExperimentUser</title>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
-
|
12
|
-
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
-
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
-
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
-
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
-
|
17
|
-
</head>
|
18
|
-
<body id="top" class="class">
|
19
|
-
|
20
|
-
<div id="metadata">
|
21
|
-
<div id="home-metadata">
|
22
|
-
<div id="home-section" class="section">
|
23
|
-
<h3 class="section-header">
|
24
|
-
<a href="../index.html">Home</a>
|
25
|
-
<a href="../index.html#classes">Classes</a>
|
26
|
-
<a href="../index.html#methods">Methods</a>
|
27
|
-
</h3>
|
28
|
-
</div>
|
29
|
-
</div>
|
30
|
-
|
31
|
-
<div id="file-metadata">
|
32
|
-
<div id="file-list-section" class="section">
|
33
|
-
<h3 class="section-header">In Files</h3>
|
34
|
-
<div class="section-body">
|
35
|
-
<ul>
|
36
|
-
|
37
|
-
<li><a href="../lib/myexperiment-rest/user_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
-
class="thickbox" title="lib/myexperiment-rest/user.rb">lib/myexperiment-rest/user.rb</a></li>
|
39
|
-
|
40
|
-
</ul>
|
41
|
-
</div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
|
45
|
-
</div>
|
46
|
-
|
47
|
-
<div id="class-metadata">
|
48
|
-
|
49
|
-
<!-- Parent Class -->
|
50
|
-
<div id="parent-class-section" class="section">
|
51
|
-
<h3 class="section-header">Parent</h3>
|
52
|
-
|
53
|
-
<p class="link">Object</p>
|
54
|
-
|
55
|
-
</div>
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
<!-- Method Quickref -->
|
64
|
-
<div id="method-list-section" class="section">
|
65
|
-
<h3 class="section-header">Methods</h3>
|
66
|
-
<ul class="link-list">
|
67
|
-
|
68
|
-
<li><a href="#method-c-new">::new</a></li>
|
69
|
-
|
70
|
-
<li><a href="#method-c-parse">::parse</a></li>
|
71
|
-
|
72
|
-
</ul>
|
73
|
-
</div>
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<div id="project-metadata">
|
80
|
-
|
81
|
-
|
82
|
-
<div id="fileindex-section" class="section project-section">
|
83
|
-
<h3 class="section-header">Files</h3>
|
84
|
-
<ul>
|
85
|
-
|
86
|
-
<li class="file"><a href="../CHANGES.html">CHANGES</a></li>
|
87
|
-
|
88
|
-
<li class="file"><a href="../LICENSE.html">LICENSE</a></li>
|
89
|
-
|
90
|
-
<li class="file"><a href="../README.html">README</a></li>
|
91
|
-
|
92
|
-
</ul>
|
93
|
-
</div>
|
94
|
-
|
95
|
-
|
96
|
-
<div id="classindex-section" class="section project-section">
|
97
|
-
<h3 class="section-header">Class/Module Index
|
98
|
-
<span class="search-toggle"><img src="../images/find.png"
|
99
|
-
height="16" width="16" alt="[+]"
|
100
|
-
title="show/hide quicksearch" /></span></h3>
|
101
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
102
|
-
<fieldset>
|
103
|
-
<legend>Quicksearch</legend>
|
104
|
-
<input type="text" name="quicksearch" value=""
|
105
|
-
class="quicksearch-field" />
|
106
|
-
</fieldset>
|
107
|
-
</form>
|
108
|
-
|
109
|
-
<ul class="link-list">
|
110
|
-
|
111
|
-
<li><a href="../MyExperimentREST.html">MyExperimentREST</a></li>
|
112
|
-
|
113
|
-
<li><a href="../MyExperimentREST/MyExperimentIOData.html">MyExperimentREST::MyExperimentIOData</a></li>
|
114
|
-
|
115
|
-
<li><a href="../MyExperimentREST/MyExperimentUser.html">MyExperimentREST::MyExperimentUser</a></li>
|
116
|
-
|
117
|
-
<li><a href="../MyExperimentREST/MyExperimentWorkflow.html">MyExperimentREST::MyExperimentWorkflow</a></li>
|
118
|
-
|
119
|
-
<li><a href="../MyExperimentREST/SessionCookie.html">MyExperimentREST::SessionCookie</a></li>
|
120
|
-
|
121
|
-
<li><a href="../MyExperimentREST/Urls.html">MyExperimentREST::Urls</a></li>
|
122
|
-
|
123
|
-
<li><a href="../MyExperimentREST/User.html">MyExperimentREST::User</a></li>
|
124
|
-
|
125
|
-
<li><a href="../MyExperimentREST/Workflow.html">MyExperimentREST::Workflow</a></li>
|
126
|
-
|
127
|
-
</ul>
|
128
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
129
|
-
</div>
|
130
|
-
|
131
|
-
|
132
|
-
</div>
|
133
|
-
</div>
|
134
|
-
|
135
|
-
<div id="documentation">
|
136
|
-
<h1 class="class">MyExperimentREST::MyExperimentUser</h1>
|
137
|
-
|
138
|
-
<div id="description" class="description">
|
139
|
-
|
140
|
-
<p>Contains information about a user. All basic information is available but
|
141
|
-
not some of the more advanced like all user’s friends or workflow’s.</p>
|
142
|
-
|
143
|
-
</div><!-- description -->
|
144
|
-
|
145
|
-
|
146
|
-
<div id="5Buntitled-5D" class="documentation-section">
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
<!-- Attributes -->
|
155
|
-
<div id="attribute-method-details" class="method-section section">
|
156
|
-
<h3 class="section-header">Attributes</h3>
|
157
|
-
|
158
|
-
|
159
|
-
<div id="avatar_uri-attribute-method" class="method-detail">
|
160
|
-
<a name="avatar_uri"></a>
|
161
|
-
|
162
|
-
<div class="method-heading attribute-method-heading">
|
163
|
-
<span class="method-name">avatar_uri</span><span
|
164
|
-
class="attribute-access-type">[R]</span>
|
165
|
-
</div>
|
166
|
-
|
167
|
-
<div class="method-description">
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
</div>
|
172
|
-
</div>
|
173
|
-
|
174
|
-
<div id="city-attribute-method" class="method-detail">
|
175
|
-
<a name="city"></a>
|
176
|
-
|
177
|
-
<div class="method-heading attribute-method-heading">
|
178
|
-
<span class="method-name">city</span><span
|
179
|
-
class="attribute-access-type">[R]</span>
|
180
|
-
</div>
|
181
|
-
|
182
|
-
<div class="method-description">
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
</div>
|
187
|
-
</div>
|
188
|
-
|
189
|
-
<div id="country-attribute-method" class="method-detail">
|
190
|
-
<a name="country"></a>
|
191
|
-
|
192
|
-
<div class="method-heading attribute-method-heading">
|
193
|
-
<span class="method-name">country</span><span
|
194
|
-
class="attribute-access-type">[R]</span>
|
195
|
-
</div>
|
196
|
-
|
197
|
-
<div class="method-description">
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
</div>
|
202
|
-
</div>
|
203
|
-
|
204
|
-
<div id="created_at-attribute-method" class="method-detail">
|
205
|
-
<a name="created_at"></a>
|
206
|
-
|
207
|
-
<div class="method-heading attribute-method-heading">
|
208
|
-
<span class="method-name">created_at</span><span
|
209
|
-
class="attribute-access-type">[R]</span>
|
210
|
-
</div>
|
211
|
-
|
212
|
-
<div class="method-description">
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
</div>
|
217
|
-
</div>
|
218
|
-
|
219
|
-
<div id="description-attribute-method" class="method-detail">
|
220
|
-
<a name="description"></a>
|
221
|
-
|
222
|
-
<div class="method-heading attribute-method-heading">
|
223
|
-
<span class="method-name">description</span><span
|
224
|
-
class="attribute-access-type">[R]</span>
|
225
|
-
</div>
|
226
|
-
|
227
|
-
<div class="method-description">
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
</div>
|
232
|
-
</div>
|
233
|
-
|
234
|
-
<div id="email-attribute-method" class="method-detail">
|
235
|
-
<a name="email"></a>
|
236
|
-
|
237
|
-
<div class="method-heading attribute-method-heading">
|
238
|
-
<span class="method-name">email</span><span
|
239
|
-
class="attribute-access-type">[R]</span>
|
240
|
-
</div>
|
241
|
-
|
242
|
-
<div class="method-description">
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
</div>
|
247
|
-
</div>
|
248
|
-
|
249
|
-
<div id="id-attribute-method" class="method-detail">
|
250
|
-
<a name="id"></a>
|
251
|
-
|
252
|
-
<div class="method-heading attribute-method-heading">
|
253
|
-
<span class="method-name">id</span><span
|
254
|
-
class="attribute-access-type">[R]</span>
|
255
|
-
</div>
|
256
|
-
|
257
|
-
<div class="method-description">
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
</div>
|
262
|
-
</div>
|
263
|
-
|
264
|
-
<div id="name-attribute-method" class="method-detail">
|
265
|
-
<a name="name"></a>
|
266
|
-
|
267
|
-
<div class="method-heading attribute-method-heading">
|
268
|
-
<span class="method-name">name</span><span
|
269
|
-
class="attribute-access-type">[R]</span>
|
270
|
-
</div>
|
271
|
-
|
272
|
-
<div class="method-description">
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
</div>
|
277
|
-
</div>
|
278
|
-
|
279
|
-
<div id="website-attribute-method" class="method-detail">
|
280
|
-
<a name="website"></a>
|
281
|
-
|
282
|
-
<div class="method-heading attribute-method-heading">
|
283
|
-
<span class="method-name">website</span><span
|
284
|
-
class="attribute-access-type">[R]</span>
|
285
|
-
</div>
|
286
|
-
|
287
|
-
<div class="method-description">
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
</div>
|
292
|
-
</div>
|
293
|
-
|
294
|
-
</div><!-- attribute-method-details -->
|
295
|
-
|
296
|
-
|
297
|
-
<!-- Methods -->
|
298
|
-
|
299
|
-
<div id="public-class-method-details" class="method-section section">
|
300
|
-
<h3 class="section-header">Public Class Methods</h3>
|
301
|
-
|
302
|
-
|
303
|
-
<div id="new-method" class="method-detail ">
|
304
|
-
<a name="method-c-new"></a>
|
305
|
-
|
306
|
-
|
307
|
-
<div class="method-heading">
|
308
|
-
<span class="method-name">new</span><span
|
309
|
-
class="method-args">(attributes)</span>
|
310
|
-
<span class="method-click-advice">click to toggle source</span>
|
311
|
-
</div>
|
312
|
-
|
313
|
-
|
314
|
-
<div class="method-description">
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
<div class="method-source-code" id="new-source">
|
321
|
-
<pre>
|
322
|
-
<span class="ruby-comment"># File lib/myexperiment-rest/user.rb, line 50</span>
|
323
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">attributes</span>)
|
324
|
-
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:id</span>]
|
325
|
-
<span class="ruby-ivar">@created_at</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:created_at</span>]
|
326
|
-
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:name</span>]
|
327
|
-
<span class="ruby-ivar">@description</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:description</span>]
|
328
|
-
<span class="ruby-ivar">@email</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:email</span>]
|
329
|
-
<span class="ruby-ivar">@avatar_uri</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:avatar_uri</span>]
|
330
|
-
<span class="ruby-ivar">@city</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:city</span>]
|
331
|
-
<span class="ruby-ivar">@country</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:country</span>]
|
332
|
-
<span class="ruby-ivar">@website</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:website</span>]
|
333
|
-
<span class="ruby-keyword">end</span></pre>
|
334
|
-
</div><!-- new-source -->
|
335
|
-
|
336
|
-
</div>
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
</div><!-- new-method -->
|
342
|
-
|
343
|
-
|
344
|
-
<div id="parse-method" class="method-detail ">
|
345
|
-
<a name="method-c-parse"></a>
|
346
|
-
|
347
|
-
|
348
|
-
<div class="method-heading">
|
349
|
-
<span class="method-name">parse</span><span
|
350
|
-
class="method-args">(xml)</span>
|
351
|
-
<span class="method-click-advice">click to toggle source</span>
|
352
|
-
</div>
|
353
|
-
|
354
|
-
|
355
|
-
<div class="method-description">
|
356
|
-
|
357
|
-
<p>Acquire data from XML response and instantiate a <em><a
|
358
|
-
href="MyExperimentWorkflow.html">MyExperimentWorkflow</a></em> object</p>
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
<div class="method-source-code" id="parse-source">
|
363
|
-
<pre>
|
364
|
-
<span class="ruby-comment"># File lib/myexperiment-rest/user.rb, line 64</span>
|
365
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">xml</span>)
|
366
|
-
|
367
|
-
<span class="ruby-identifier">doc</span> = <span class="ruby-constant">LibXML</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span><span class="ruby-operator">::</span><span class="ruby-constant">Document</span>.<span class="ruby-identifier">string</span>(<span class="ruby-identifier">xml</span>)
|
368
|
-
|
369
|
-
<span class="ruby-identifier">new</span>(<span class="ruby-value">:id</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">"/user/id"</span>).<span class="ruby-identifier">content</span>,
|
370
|
-
<span class="ruby-value">:created_at</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">"/user/created-at"</span>).<span class="ruby-identifier">content</span>,
|
371
|
-
<span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">"/user/name"</span>).<span class="ruby-identifier">content</span>,
|
372
|
-
<span class="ruby-value">:description</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">"/user/description"</span>).<span class="ruby-identifier">content</span>,
|
373
|
-
<span class="ruby-value">:email</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">"/user/email"</span>).<span class="ruby-identifier">content</span>,
|
374
|
-
<span class="ruby-value">:avatar_uri</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">"/user/avatar"</span>).<span class="ruby-identifier">attributes</span>[<span class="ruby-value">:uri</span>],
|
375
|
-
<span class="ruby-value">:city</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">"/user/city"</span>).<span class="ruby-identifier">content</span>,
|
376
|
-
<span class="ruby-value">:country</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">"/user/country"</span>).<span class="ruby-identifier">content</span>,
|
377
|
-
<span class="ruby-value">:website</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">"/user/website"</span>).<span class="ruby-identifier">content</span>)
|
378
|
-
|
379
|
-
<span class="ruby-keyword">end</span></pre>
|
380
|
-
</div><!-- parse-source -->
|
381
|
-
|
382
|
-
</div>
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
</div><!-- parse-method -->
|
388
|
-
|
389
|
-
|
390
|
-
</div><!-- public-class-method-details -->
|
391
|
-
|
392
|
-
</div><!-- 5Buntitled-5D -->
|
393
|
-
|
394
|
-
|
395
|
-
</div><!-- documentation -->
|
396
|
-
|
397
|
-
<div id="validator-badges">
|
398
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
399
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
400
|
-
Rdoc Generator</a> 2</small>.</p>
|
401
|
-
</div>
|
402
|
-
|
403
|
-
</body>
|
404
|
-
</html>
|
405
|
-
|