myexperiment-rest 0.2.8 → 0.3.0

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.
@@ -5,7 +5,7 @@
5
5
  <head>
6
6
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
7
 
8
- <title>Class: MyExperimentREST::TavernaUser</title>
8
+ <title>Class: MyExperimentREST::MyExperimentUser</title>
9
9
 
10
10
  <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
11
 
@@ -34,8 +34,8 @@
34
34
  <div class="section-body">
35
35
  <ul>
36
36
 
37
- <li><a href="../lib/myexperiment-rest/myexperiment_rest_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/myexperiment-rest/myexperiment_rest.rb">lib/myexperiment-rest/myexperiment_rest.rb</a></li>
37
+ <li><a href="../lib/myexperiment-rest/user_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/myexperiment-rest/user.rb">lib/myexperiment-rest/user.rb</a></li>
39
39
 
40
40
  </ul>
41
41
  </div>
@@ -67,6 +67,8 @@
67
67
 
68
68
  <li><a href="#method-c-new">::new</a></li>
69
69
 
70
+ <li><a href="#method-c-parse">::parse</a></li>
71
+
70
72
  </ul>
71
73
  </div>
72
74
 
@@ -108,13 +110,17 @@
108
110
 
109
111
  <li><a href="../MyExperimentREST.html">MyExperimentREST</a></li>
110
112
 
111
- <li><a href="../MyExperimentREST/TavernaIOData.html">MyExperimentREST::TavernaIOData</a></li>
113
+ <li><a href="../MyExperimentREST/MyExperimentIOData.html">MyExperimentREST::MyExperimentIOData</a></li>
114
+
115
+ <li><a href="../MyExperimentREST/MyExperimentUser.html">MyExperimentREST::MyExperimentUser</a></li>
112
116
 
113
- <li><a href="../MyExperimentREST/TavernaUser.html">MyExperimentREST::TavernaUser</a></li>
117
+ <li><a href="../MyExperimentREST/MyExperimentWorkflow.html">MyExperimentREST::MyExperimentWorkflow</a></li>
114
118
 
115
- <li><a href="../MyExperimentREST/TavernaWorkflow.html">MyExperimentREST::TavernaWorkflow</a></li>
119
+ <li><a href="../MyExperimentREST/Urls.html">MyExperimentREST::Urls</a></li>
116
120
 
117
- <li><a href="../MyExperimentREST/Workflows.html">MyExperimentREST::Workflows</a></li>
121
+ <li><a href="../MyExperimentREST/User.html">MyExperimentREST::User</a></li>
122
+
123
+ <li><a href="../MyExperimentREST/Workflow.html">MyExperimentREST::Workflow</a></li>
118
124
 
119
125
  </ul>
120
126
  <div id="no-class-search-results" style="display: none;">No matching classes.</div>
@@ -125,12 +131,12 @@
125
131
  </div>
126
132
 
127
133
  <div id="documentation">
128
- <h1 class="class">MyExperimentREST::TavernaUser</h1>
134
+ <h1 class="class">MyExperimentREST::MyExperimentUser</h1>
129
135
 
130
136
  <div id="description" class="description">
131
137
 
132
- <p>Contains all available information about an input or output: name,
133
- descriptions and examples. The last two are lists.</p>
138
+ <p>Contains information about a user. All basic information is available but
139
+ not some of the more advanced like all user’s friends or workflow’s.</p>
134
140
 
135
141
  </div><!-- description -->
136
142
 
@@ -148,11 +154,41 @@ descriptions and examples. The last two are lists.</p>
148
154
  <h3 class="section-header">Attributes</h3>
149
155
 
150
156
 
151
- <div id="avatar-attribute-method" class="method-detail">
152
- <a name="avatar"></a>
157
+ <div id="avatar_uri-attribute-method" class="method-detail">
158
+ <a name="avatar_uri"></a>
159
+
160
+ <div class="method-heading attribute-method-heading">
161
+ <span class="method-name">avatar_uri</span><span
162
+ class="attribute-access-type">[R]</span>
163
+ </div>
164
+
165
+ <div class="method-description">
166
+
167
+
168
+
169
+ </div>
170
+ </div>
171
+
172
+ <div id="city-attribute-method" class="method-detail">
173
+ <a name="city"></a>
174
+
175
+ <div class="method-heading attribute-method-heading">
176
+ <span class="method-name">city</span><span
177
+ class="attribute-access-type">[R]</span>
178
+ </div>
179
+
180
+ <div class="method-description">
181
+
182
+
183
+
184
+ </div>
185
+ </div>
186
+
187
+ <div id="country-attribute-method" class="method-detail">
188
+ <a name="country"></a>
153
189
 
154
190
  <div class="method-heading attribute-method-heading">
155
- <span class="method-name">avatar</span><span
191
+ <span class="method-name">country</span><span
156
192
  class="attribute-access-type">[R]</span>
157
193
  </div>
158
194
 
@@ -205,6 +241,21 @@ descriptions and examples. The last two are lists.</p>
205
241
 
206
242
 
207
243
 
244
+ </div>
245
+ </div>
246
+
247
+ <div id="id-attribute-method" class="method-detail">
248
+ <a name="id"></a>
249
+
250
+ <div class="method-heading attribute-method-heading">
251
+ <span class="method-name">id</span><span
252
+ class="attribute-access-type">[R]</span>
253
+ </div>
254
+
255
+ <div class="method-description">
256
+
257
+
258
+
208
259
  </div>
209
260
  </div>
210
261
 
@@ -253,7 +304,7 @@ descriptions and examples. The last two are lists.</p>
253
304
 
254
305
  <div class="method-heading">
255
306
  <span class="method-name">new</span><span
256
- class="method-args">(name, description, email, avatar, website, created_at)</span>
307
+ class="method-args">(attributes)</span>
257
308
  <span class="method-click-advice">click to toggle source</span>
258
309
  </div>
259
310
 
@@ -266,14 +317,17 @@ descriptions and examples. The last two are lists.</p>
266
317
 
267
318
  <div class="method-source-code" id="new-source">
268
319
  <pre>
269
- <span class="ruby-comment"># File lib/myexperiment-rest/myexperiment_rest.rb, line 176</span>
270
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">description</span>, <span class="ruby-identifier">email</span>, <span class="ruby-identifier">avatar</span>, <span class="ruby-identifier">website</span>, <span class="ruby-identifier">created_at</span>)
271
- <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
272
- <span class="ruby-ivar">@description</span> = <span class="ruby-identifier">description</span>
273
- <span class="ruby-ivar">@email</span> = <span class="ruby-identifier">email</span>
274
- <span class="ruby-ivar">@avatar</span> = <span class="ruby-identifier">avatar</span>
275
- <span class="ruby-ivar">@website</span> = <span class="ruby-identifier">website</span>
276
- <span class="ruby-ivar">@created_at</span> = <span class="ruby-identifier">created_at</span>
320
+ <span class="ruby-comment"># File lib/myexperiment-rest/user.rb, line 50</span>
321
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">attributes</span>)
322
+ <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:id</span>]
323
+ <span class="ruby-ivar">@created_at</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:created_at</span>]
324
+ <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:name</span>]
325
+ <span class="ruby-ivar">@description</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:description</span>]
326
+ <span class="ruby-ivar">@email</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:email</span>]
327
+ <span class="ruby-ivar">@avatar_uri</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:avatar_uri</span>]
328
+ <span class="ruby-ivar">@city</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:city</span>]
329
+ <span class="ruby-ivar">@country</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:country</span>]
330
+ <span class="ruby-ivar">@website</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:website</span>]
277
331
  <span class="ruby-keyword">end</span></pre>
278
332
  </div><!-- new-source -->
279
333
 
@@ -285,6 +339,52 @@ descriptions and examples. The last two are lists.</p>
285
339
  </div><!-- new-method -->
286
340
 
287
341
 
342
+ <div id="parse-method" class="method-detail ">
343
+ <a name="method-c-parse"></a>
344
+
345
+
346
+ <div class="method-heading">
347
+ <span class="method-name">parse</span><span
348
+ class="method-args">(xml)</span>
349
+ <span class="method-click-advice">click to toggle source</span>
350
+ </div>
351
+
352
+
353
+ <div class="method-description">
354
+
355
+ <p>Acquire data from XML response and instantiate a <em><a
356
+ href="MyExperimentWorkflow.html">MyExperimentWorkflow</a></em> object</p>
357
+
358
+
359
+
360
+ <div class="method-source-code" id="parse-source">
361
+ <pre>
362
+ <span class="ruby-comment"># File lib/myexperiment-rest/user.rb, line 64</span>
363
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">xml</span>)
364
+
365
+ <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>)
366
+
367
+ <span class="ruby-identifier">new</span>(<span class="ruby-value">:id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/user/id&quot;</span>).<span class="ruby-identifier">content</span>,
368
+ <span class="ruby-value">:created_at</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/user/created-at&quot;</span>).<span class="ruby-identifier">content</span>,
369
+ <span class="ruby-value">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/user/name&quot;</span>).<span class="ruby-identifier">content</span>,
370
+ <span class="ruby-value">:description</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/user/description&quot;</span>).<span class="ruby-identifier">content</span>,
371
+ <span class="ruby-value">:email</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/user/email&quot;</span>).<span class="ruby-identifier">content</span>,
372
+ <span class="ruby-value">:avatar_uri</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/user/avatar&quot;</span>).<span class="ruby-identifier">attributes</span>[<span class="ruby-value">:uri</span>],
373
+ <span class="ruby-value">:city</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/user/city&quot;</span>).<span class="ruby-identifier">content</span>,
374
+ <span class="ruby-value">:country</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/user/country&quot;</span>).<span class="ruby-identifier">content</span>,
375
+ <span class="ruby-value">:website</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/user/website&quot;</span>).<span class="ruby-identifier">content</span>)
376
+
377
+ <span class="ruby-keyword">end</span></pre>
378
+ </div><!-- parse-source -->
379
+
380
+ </div>
381
+
382
+
383
+
384
+
385
+ </div><!-- parse-method -->
386
+
387
+
288
388
  </div><!-- public-class-method-details -->
289
389
 
290
390
  </div><!-- 5Buntitled-5D -->
@@ -5,7 +5,7 @@
5
5
  <head>
6
6
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
7
 
8
- <title>Class: MyExperimentREST::TavernaWorkflow</title>
8
+ <title>Class: MyExperimentREST::MyExperimentWorkflow</title>
9
9
 
10
10
  <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
11
 
@@ -34,8 +34,8 @@
34
34
  <div class="section-body">
35
35
  <ul>
36
36
 
37
- <li><a href="../lib/myexperiment-rest/myexperiment_rest_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/myexperiment-rest/myexperiment_rest.rb">lib/myexperiment-rest/myexperiment_rest.rb</a></li>
37
+ <li><a href="../lib/myexperiment-rest/workflow_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/myexperiment-rest/workflow.rb">lib/myexperiment-rest/workflow.rb</a></li>
39
39
 
40
40
  </ul>
41
41
  </div>
@@ -67,6 +67,8 @@
67
67
 
68
68
  <li><a href="#method-c-new">::new</a></li>
69
69
 
70
+ <li><a href="#method-c-parse">::parse</a></li>
71
+
70
72
  </ul>
71
73
  </div>
72
74
 
@@ -108,13 +110,17 @@
108
110
 
109
111
  <li><a href="../MyExperimentREST.html">MyExperimentREST</a></li>
110
112
 
111
- <li><a href="../MyExperimentREST/TavernaIOData.html">MyExperimentREST::TavernaIOData</a></li>
113
+ <li><a href="../MyExperimentREST/MyExperimentIOData.html">MyExperimentREST::MyExperimentIOData</a></li>
114
+
115
+ <li><a href="../MyExperimentREST/MyExperimentUser.html">MyExperimentREST::MyExperimentUser</a></li>
112
116
 
113
- <li><a href="../MyExperimentREST/TavernaUser.html">MyExperimentREST::TavernaUser</a></li>
117
+ <li><a href="../MyExperimentREST/MyExperimentWorkflow.html">MyExperimentREST::MyExperimentWorkflow</a></li>
114
118
 
115
- <li><a href="../MyExperimentREST/TavernaWorkflow.html">MyExperimentREST::TavernaWorkflow</a></li>
119
+ <li><a href="../MyExperimentREST/Urls.html">MyExperimentREST::Urls</a></li>
116
120
 
117
- <li><a href="../MyExperimentREST/Workflows.html">MyExperimentREST::Workflows</a></li>
121
+ <li><a href="../MyExperimentREST/User.html">MyExperimentREST::User</a></li>
122
+
123
+ <li><a href="../MyExperimentREST/Workflow.html">MyExperimentREST::Workflow</a></li>
118
124
 
119
125
  </ul>
120
126
  <div id="no-class-search-results" style="display: none;">No matching classes.</div>
@@ -125,21 +131,19 @@
125
131
  </div>
126
132
 
127
133
  <div id="documentation">
128
- <h1 class="class">MyExperimentREST::TavernaWorkflow</h1>
134
+ <h1 class="class">MyExperimentREST::MyExperimentWorkflow</h1>
129
135
 
130
136
  <div id="description" class="description">
131
137
 
132
138
  <p>Contains all available information about a workflow: <em><a
133
- href="TavernaWorkflow.html#attribute-i-input_type">input_type</a></em>,
134
- <em><a href="TavernaWorkflow.html#attribute-i-xml_uri">xml_uri</a></em>,
139
+ href="MyExperimentWorkflow.html#attribute-i-xml_uri">xml_uri</a></em>,
135
140
  <em>title</em>, <em>description</em>,<em>inputs</em>, <em>outputs</em> and
136
- <em>user</em>. The <em><a
137
- href="TavernaWorkflow.html#attribute-i-xml_uri">xml_uri</a></em> specifies
138
- the XML description on myExperiment and not the XML of the workflow itself.
139
141
  <em><a
140
- href="TavernaWorkflow.html#attribute-i-input_type">input_type</a></em>
141
- specifies the kind of input. Currently, either “myexperiment”
142
- (myExperiment’s xml uri) or “t2flow” (filename)</p>
142
+ href="MyExperimentWorkflow.html#attribute-i-uploader_uri">uploader_uri</a></em>.
143
+ The <em><a
144
+ href="MyExperimentWorkflow.html#attribute-i-xml_uri">xml_uri</a></em>
145
+ specifies the XML description on myExperiment and not the XML of the
146
+ workflow itself.</p>
143
147
 
144
148
  </div><!-- description -->
145
149
 
@@ -150,24 +154,6 @@ specifies the kind of input. Currently, either “myexperiment”
150
154
 
151
155
 
152
156
 
153
- <!-- Constants -->
154
- <div id="constants-list" class="section">
155
- <h3 class="section-header">Constants</h3>
156
- <dl>
157
-
158
- <dt><a name="MY_EXPERIMENT">MY_EXPERIMENT</a></dt>
159
-
160
- <dd class="description"><p>possible input types</p></dd>
161
-
162
-
163
- <dt><a name="T2_FLOW">T2_FLOW</a></dt>
164
-
165
- <dd class="description"></dd>
166
-
167
-
168
- </dl>
169
- </div>
170
-
171
157
 
172
158
 
173
159
  <!-- Attributes -->
@@ -187,21 +173,6 @@ specifies the kind of input. Currently, either “myexperiment”
187
173
 
188
174
 
189
175
 
190
- </div>
191
- </div>
192
-
193
- <div id="input_type-attribute-method" class="method-detail">
194
- <a name="input_type"></a>
195
-
196
- <div class="method-heading attribute-method-heading">
197
- <span class="method-name">input_type</span><span
198
- class="attribute-access-type">[R]</span>
199
- </div>
200
-
201
- <div class="method-description">
202
-
203
-
204
-
205
176
  </div>
206
177
  </div>
207
178
 
@@ -250,11 +221,11 @@ specifies the kind of input. Currently, either “myexperiment”
250
221
  </div>
251
222
  </div>
252
223
 
253
- <div id="user-attribute-method" class="method-detail">
254
- <a name="user"></a>
224
+ <div id="uploader_uri-attribute-method" class="method-detail">
225
+ <a name="uploader_uri"></a>
255
226
 
256
227
  <div class="method-heading attribute-method-heading">
257
- <span class="method-name">user</span><span
228
+ <span class="method-name">uploader_uri</span><span
258
229
  class="attribute-access-type">[R]</span>
259
230
  </div>
260
231
 
@@ -295,7 +266,7 @@ specifies the kind of input. Currently, either “myexperiment”
295
266
 
296
267
  <div class="method-heading">
297
268
  <span class="method-name">new</span><span
298
- class="method-args">(input_type, xml_uri, title, description, inputs, outputs, user)</span>
269
+ class="method-args">(attributes)</span>
299
270
  <span class="method-click-advice">click to toggle source</span>
300
271
  </div>
301
272
 
@@ -308,15 +279,14 @@ specifies the kind of input. Currently, either “myexperiment”
308
279
 
309
280
  <div class="method-source-code" id="new-source">
310
281
  <pre>
311
- <span class="ruby-comment"># File lib/myexperiment-rest/myexperiment_rest.rb, line 137</span>
312
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input_type</span>, <span class="ruby-identifier">xml_uri</span>, <span class="ruby-identifier">title</span>, <span class="ruby-identifier">description</span>, <span class="ruby-identifier">inputs</span>, <span class="ruby-identifier">outputs</span>, <span class="ruby-identifier">user</span>)
313
- <span class="ruby-ivar">@input_type</span> = <span class="ruby-identifier">input_type</span>
314
- <span class="ruby-ivar">@xml_uri</span> = <span class="ruby-identifier">xml_uri</span>
315
- <span class="ruby-ivar">@title</span> = <span class="ruby-identifier">title</span>
316
- <span class="ruby-ivar">@description</span> = <span class="ruby-identifier">description</span>
317
- <span class="ruby-ivar">@inputs</span> = <span class="ruby-identifier">inputs</span>
318
- <span class="ruby-ivar">@outputs</span> = <span class="ruby-identifier">outputs</span>
319
- <span class="ruby-ivar">@user</span> = <span class="ruby-identifier">user</span>
282
+ <span class="ruby-comment"># File lib/myexperiment-rest/workflow.rb, line 61</span>
283
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">attributes</span>)
284
+ <span class="ruby-ivar">@xml_uri</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:xml_uri</span>]
285
+ <span class="ruby-ivar">@title</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:title</span>]
286
+ <span class="ruby-ivar">@description</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:description</span>]
287
+ <span class="ruby-ivar">@inputs</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:inputs</span>]
288
+ <span class="ruby-ivar">@outputs</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:outputs</span>]
289
+ <span class="ruby-ivar">@uploader_uri</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:uploader_uri</span>]
320
290
  <span class="ruby-keyword">end</span></pre>
321
291
  </div><!-- new-source -->
322
292
 
@@ -328,6 +298,61 @@ specifies the kind of input. Currently, either “myexperiment”
328
298
  </div><!-- new-method -->
329
299
 
330
300
 
301
+ <div id="parse-method" class="method-detail ">
302
+ <a name="method-c-parse"></a>
303
+
304
+
305
+ <div class="method-heading">
306
+ <span class="method-name">parse</span><span
307
+ class="method-args">(xml)</span>
308
+ <span class="method-click-advice">click to toggle source</span>
309
+ </div>
310
+
311
+
312
+ <div class="method-description">
313
+
314
+ <p>Parse workflow information XML and instantiate a <em><a
315
+ href="MyExperimentWorkflow.html">MyExperimentWorkflow</a></em> object</p>
316
+
317
+
318
+
319
+ <div class="method-source-code" id="parse-source">
320
+ <pre>
321
+ <span class="ruby-comment"># File lib/myexperiment-rest/workflow.rb, line 71</span>
322
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">xml</span>)
323
+
324
+ <span class="ruby-identifier">wkf_inputs</span> = []
325
+ <span class="ruby-identifier">wkf_outputs</span> = []
326
+
327
+ <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>)
328
+
329
+ <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find</span>(<span class="ruby-string">&quot;//workflow/components/dataflows/dataflow[@role='top']/sources/source&quot;</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">element</span><span class="ruby-operator">|</span>
330
+ <span class="ruby-identifier">wkf_inputs</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">MyExperimentIOData</span>.<span class="ruby-identifier">from_xml</span>(<span class="ruby-identifier">element</span>)
331
+ <span class="ruby-keyword">end</span>
332
+
333
+ <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find</span>(<span class="ruby-string">&quot;//workflow/components/dataflows/dataflow[@role='top']/sinks/sink&quot;</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">element</span><span class="ruby-operator">|</span>
334
+ <span class="ruby-identifier">wkf_outputs</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">MyExperimentIOData</span>.<span class="ruby-identifier">from_xml</span>(<span class="ruby-identifier">element</span>)
335
+ <span class="ruby-keyword">end</span>
336
+
337
+
338
+ <span class="ruby-identifier">new</span>(<span class="ruby-value">:xml_uri</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/workflow/content-uri&quot;</span>).<span class="ruby-identifier">content</span>,
339
+ <span class="ruby-value">:title</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/workflow/title&quot;</span>).<span class="ruby-identifier">content</span>,
340
+ <span class="ruby-value">:description</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/workflow/description&quot;</span>).<span class="ruby-identifier">content</span>,
341
+ <span class="ruby-value">:inputs</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">wkf_inputs</span>,
342
+ <span class="ruby-value">:outputs</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">wkf_outputs</span>,
343
+ <span class="ruby-value">:uploader_uri</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">find_first</span>(<span class="ruby-string">&quot;/workflow/uploader&quot;</span>).<span class="ruby-identifier">attributes</span>[<span class="ruby-string">'uri'</span>])
344
+
345
+ <span class="ruby-keyword">end</span></pre>
346
+ </div><!-- parse-source -->
347
+
348
+ </div>
349
+
350
+
351
+
352
+
353
+ </div><!-- parse-method -->
354
+
355
+
331
356
  </div><!-- public-class-method-details -->
332
357
 
333
358
  </div><!-- 5Buntitled-5D -->
@@ -0,0 +1,168 @@
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>Module: MyExperimentREST::Urls</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="module">
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/constants_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/myexperiment-rest/constants.rb">lib/myexperiment-rest/constants.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+ </div>
58
+
59
+ <div id="project-metadata">
60
+
61
+
62
+ <div id="fileindex-section" class="section project-section">
63
+ <h3 class="section-header">Files</h3>
64
+ <ul>
65
+
66
+ <li class="file"><a href="../CHANGES.html">CHANGES</a></li>
67
+
68
+ <li class="file"><a href="../LICENSE.html">LICENSE</a></li>
69
+
70
+ <li class="file"><a href="../README.html">README</a></li>
71
+
72
+ </ul>
73
+ </div>
74
+
75
+
76
+ <div id="classindex-section" class="section project-section">
77
+ <h3 class="section-header">Class/Module Index
78
+ <span class="search-toggle"><img src="../images/find.png"
79
+ height="16" width="16" alt="[+]"
80
+ title="show/hide quicksearch" /></span></h3>
81
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
82
+ <fieldset>
83
+ <legend>Quicksearch</legend>
84
+ <input type="text" name="quicksearch" value=""
85
+ class="quicksearch-field" />
86
+ </fieldset>
87
+ </form>
88
+
89
+ <ul class="link-list">
90
+
91
+ <li><a href="../MyExperimentREST.html">MyExperimentREST</a></li>
92
+
93
+ <li><a href="../MyExperimentREST/MyExperimentIOData.html">MyExperimentREST::MyExperimentIOData</a></li>
94
+
95
+ <li><a href="../MyExperimentREST/MyExperimentUser.html">MyExperimentREST::MyExperimentUser</a></li>
96
+
97
+ <li><a href="../MyExperimentREST/MyExperimentWorkflow.html">MyExperimentREST::MyExperimentWorkflow</a></li>
98
+
99
+ <li><a href="../MyExperimentREST/Urls.html">MyExperimentREST::Urls</a></li>
100
+
101
+ <li><a href="../MyExperimentREST/User.html">MyExperimentREST::User</a></li>
102
+
103
+ <li><a href="../MyExperimentREST/Workflow.html">MyExperimentREST::Workflow</a></li>
104
+
105
+ </ul>
106
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
107
+ </div>
108
+
109
+
110
+ </div>
111
+ </div>
112
+
113
+ <div id="documentation">
114
+ <h1 class="module">MyExperimentREST::Urls</h1>
115
+
116
+ <div id="description" class="description">
117
+
118
+ </div><!-- description -->
119
+
120
+
121
+ <div id="5Buntitled-5D" class="documentation-section">
122
+
123
+
124
+
125
+
126
+
127
+ <!-- Constants -->
128
+ <div id="constants-list" class="section">
129
+ <h3 class="section-header">Constants</h3>
130
+ <dl>
131
+
132
+ <dt><a name="MYEXPERIMENT_URL">MYEXPERIMENT_URL</a></dt>
133
+
134
+ <dd class="description"><p>URL constants</p></dd>
135
+
136
+
137
+ <dt><a name="USER_URL">USER_URL</a></dt>
138
+
139
+ <dd class="description"></dd>
140
+
141
+
142
+ <dt><a name="WORKFLOW_URL">WORKFLOW_URL</a></dt>
143
+
144
+ <dd class="description"></dd>
145
+
146
+
147
+ </dl>
148
+ </div>
149
+
150
+
151
+
152
+
153
+ <!-- Methods -->
154
+
155
+ </div><!-- 5Buntitled-5D -->
156
+
157
+
158
+ </div><!-- documentation -->
159
+
160
+ <div id="validator-badges">
161
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
162
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
163
+ Rdoc Generator</a> 2</small>.</p>
164
+ </div>
165
+
166
+ </body>
167
+ </html>
168
+