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.
Files changed (47) hide show
  1. data/CHANGES +4 -1
  2. data/README +2 -2
  3. data/Rakefile +3 -3
  4. metadata +7 -50
  5. data/doc/rdoc/CHANGES.html +0 -168
  6. data/doc/rdoc/LICENSE.html +0 -127
  7. data/doc/rdoc/MyExperimentREST.html +0 -271
  8. data/doc/rdoc/MyExperimentREST/MyExperimentIOData.html +0 -319
  9. data/doc/rdoc/MyExperimentREST/MyExperimentUser.html +0 -405
  10. data/doc/rdoc/MyExperimentREST/MyExperimentWorkflow.html +0 -369
  11. data/doc/rdoc/MyExperimentREST/SessionCookie.html +0 -216
  12. data/doc/rdoc/MyExperimentREST/Urls.html +0 -175
  13. data/doc/rdoc/MyExperimentREST/User.html +0 -262
  14. data/doc/rdoc/MyExperimentREST/Workflow.html +0 -271
  15. data/doc/rdoc/README.html +0 -145
  16. data/doc/rdoc/created.rid +0 -9
  17. data/doc/rdoc/images/brick.png +0 -0
  18. data/doc/rdoc/images/brick_link.png +0 -0
  19. data/doc/rdoc/images/bug.png +0 -0
  20. data/doc/rdoc/images/bullet_black.png +0 -0
  21. data/doc/rdoc/images/bullet_toggle_minus.png +0 -0
  22. data/doc/rdoc/images/bullet_toggle_plus.png +0 -0
  23. data/doc/rdoc/images/date.png +0 -0
  24. data/doc/rdoc/images/find.png +0 -0
  25. data/doc/rdoc/images/loadingAnimation.gif +0 -0
  26. data/doc/rdoc/images/macFFBgHack.png +0 -0
  27. data/doc/rdoc/images/package.png +0 -0
  28. data/doc/rdoc/images/page_green.png +0 -0
  29. data/doc/rdoc/images/page_white_text.png +0 -0
  30. data/doc/rdoc/images/page_white_width.png +0 -0
  31. data/doc/rdoc/images/plugin.png +0 -0
  32. data/doc/rdoc/images/ruby.png +0 -0
  33. data/doc/rdoc/images/tag_green.png +0 -0
  34. data/doc/rdoc/images/wrench.png +0 -0
  35. data/doc/rdoc/images/wrench_orange.png +0 -0
  36. data/doc/rdoc/images/zoom.png +0 -0
  37. data/doc/rdoc/index.html +0 -142
  38. data/doc/rdoc/js/darkfish.js +0 -116
  39. data/doc/rdoc/js/jquery.js +0 -32
  40. data/doc/rdoc/js/quicksearch.js +0 -114
  41. data/doc/rdoc/js/thickbox-compressed.js +0 -10
  42. data/doc/rdoc/lib/myexperiment-rest/authentication_rb.html +0 -54
  43. data/doc/rdoc/lib/myexperiment-rest/constants_rb.html +0 -52
  44. data/doc/rdoc/lib/myexperiment-rest/user_rb.html +0 -54
  45. data/doc/rdoc/lib/myexperiment-rest/workflow_rb.html +0 -54
  46. data/doc/rdoc/lib/myexperiment-rest_rb.html +0 -64
  47. data/doc/rdoc/rdoc.css +0 -763
@@ -1,369 +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::MyExperimentWorkflow</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&amp;height=550&amp;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-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::MyExperimentWorkflow</h1>
137
-
138
- <div id="description" class="description">
139
-
140
- <p>Contains all available information about a workflow: <em><a
141
- href="MyExperimentWorkflow.html#attribute-i-content_uri">content_uri</a></em>,
142
- <em>title</em>, <em>description</em>,<em>inputs</em>, <em>outputs</em> and
143
- <em><a
144
- href="MyExperimentWorkflow.html#attribute-i-uploader_uri">uploader_uri</a></em>.</p>
145
-
146
- </div><!-- description -->
147
-
148
-
149
- <div id="5Buntitled-5D" class="documentation-section">
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
- <!-- Attributes -->
158
- <div id="attribute-method-details" class="method-section section">
159
- <h3 class="section-header">Attributes</h3>
160
-
161
-
162
- <div id="content_uri-attribute-method" class="method-detail">
163
- <a name="content_uri"></a>
164
-
165
- <div class="method-heading attribute-method-heading">
166
- <span class="method-name">content_uri</span><span
167
- class="attribute-access-type">[R]</span>
168
- </div>
169
-
170
- <div class="method-description">
171
-
172
-
173
-
174
- </div>
175
- </div>
176
-
177
- <div id="description-attribute-method" class="method-detail">
178
- <a name="description"></a>
179
-
180
- <div class="method-heading attribute-method-heading">
181
- <span class="method-name">description</span><span
182
- class="attribute-access-type">[R]</span>
183
- </div>
184
-
185
- <div class="method-description">
186
-
187
-
188
-
189
- </div>
190
- </div>
191
-
192
- <div id="inputs-attribute-method" class="method-detail">
193
- <a name="inputs"></a>
194
-
195
- <div class="method-heading attribute-method-heading">
196
- <span class="method-name">inputs</span><span
197
- class="attribute-access-type">[R]</span>
198
- </div>
199
-
200
- <div class="method-description">
201
-
202
-
203
-
204
- </div>
205
- </div>
206
-
207
- <div id="outputs-attribute-method" class="method-detail">
208
- <a name="outputs"></a>
209
-
210
- <div class="method-heading attribute-method-heading">
211
- <span class="method-name">outputs</span><span
212
- class="attribute-access-type">[R]</span>
213
- </div>
214
-
215
- <div class="method-description">
216
-
217
-
218
-
219
- </div>
220
- </div>
221
-
222
- <div id="title-attribute-method" class="method-detail">
223
- <a name="title"></a>
224
-
225
- <div class="method-heading attribute-method-heading">
226
- <span class="method-name">title</span><span
227
- class="attribute-access-type">[R]</span>
228
- </div>
229
-
230
- <div class="method-description">
231
-
232
-
233
-
234
- </div>
235
- </div>
236
-
237
- <div id="uploader_uri-attribute-method" class="method-detail">
238
- <a name="uploader_uri"></a>
239
-
240
- <div class="method-heading attribute-method-heading">
241
- <span class="method-name">uploader_uri</span><span
242
- class="attribute-access-type">[R]</span>
243
- </div>
244
-
245
- <div class="method-description">
246
-
247
-
248
-
249
- </div>
250
- </div>
251
-
252
- </div><!-- attribute-method-details -->
253
-
254
-
255
- <!-- Methods -->
256
-
257
- <div id="public-class-method-details" class="method-section section">
258
- <h3 class="section-header">Public Class Methods</h3>
259
-
260
-
261
- <div id="new-method" class="method-detail ">
262
- <a name="method-c-new"></a>
263
-
264
-
265
- <div class="method-heading">
266
- <span class="method-name">new</span><span
267
- class="method-args">(attributes)</span>
268
- <span class="method-click-advice">click to toggle source</span>
269
- </div>
270
-
271
-
272
- <div class="method-description">
273
-
274
-
275
-
276
-
277
-
278
- <div class="method-source-code" id="new-source">
279
- <pre>
280
- <span class="ruby-comment"># File lib/myexperiment-rest/workflow.rb, line 59</span>
281
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">attributes</span>)
282
- <span class="ruby-ivar">@content_uri</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:content_uri</span>]
283
- <span class="ruby-ivar">@title</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:title</span>]
284
- <span class="ruby-ivar">@description</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:description</span>]
285
- <span class="ruby-ivar">@inputs</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:inputs</span>]
286
- <span class="ruby-ivar">@outputs</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:outputs</span>]
287
- <span class="ruby-ivar">@uploader_uri</span> = <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:uploader_uri</span>]
288
- <span class="ruby-keyword">end</span></pre>
289
- </div><!-- new-source -->
290
-
291
- </div>
292
-
293
-
294
-
295
-
296
- </div><!-- new-method -->
297
-
298
-
299
- <div id="parse-method" class="method-detail ">
300
- <a name="method-c-parse"></a>
301
-
302
-
303
- <div class="method-heading">
304
- <span class="method-name">parse</span><span
305
- class="method-args">(xml)</span>
306
- <span class="method-click-advice">click to toggle source</span>
307
- </div>
308
-
309
-
310
- <div class="method-description">
311
-
312
- <p>Parse workflow information XML and instantiate a <em><a
313
- href="MyExperimentWorkflow.html">MyExperimentWorkflow</a></em> object</p>
314
-
315
-
316
-
317
- <div class="method-source-code" id="parse-source">
318
- <pre>
319
- <span class="ruby-comment"># File lib/myexperiment-rest/workflow.rb, line 69</span>
320
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">xml</span>)
321
-
322
- <span class="ruby-identifier">wkf_inputs</span> = []
323
- <span class="ruby-identifier">wkf_outputs</span> = []
324
-
325
- <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>)
326
-
327
- <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>
328
- <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>)
329
- <span class="ruby-keyword">end</span>
330
-
331
- <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>
332
- <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>)
333
- <span class="ruby-keyword">end</span>
334
-
335
-
336
- <span class="ruby-identifier">new</span>(<span class="ruby-value">:content_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>,
337
- <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>,
338
- <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>,
339
- <span class="ruby-value">:inputs</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">wkf_inputs</span>,
340
- <span class="ruby-value">:outputs</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">wkf_outputs</span>,
341
- <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>])
342
-
343
- <span class="ruby-keyword">end</span></pre>
344
- </div><!-- parse-source -->
345
-
346
- </div>
347
-
348
-
349
-
350
-
351
- </div><!-- parse-method -->
352
-
353
-
354
- </div><!-- public-class-method-details -->
355
-
356
- </div><!-- 5Buntitled-5D -->
357
-
358
-
359
- </div><!-- documentation -->
360
-
361
- <div id="validator-badges">
362
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
363
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
364
- Rdoc Generator</a> 2</small>.</p>
365
- </div>
366
-
367
- </body>
368
- </html>
369
-
@@ -1,216 +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::SessionCookie</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/authentication_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/myexperiment-rest/authentication.rb">lib/myexperiment-rest/authentication.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-create_session_cookie">::create_session_cookie</a></li>
69
-
70
- </ul>
71
- </div>
72
-
73
-
74
-
75
- </div>
76
-
77
- <div id="project-metadata">
78
-
79
-
80
- <div id="fileindex-section" class="section project-section">
81
- <h3 class="section-header">Files</h3>
82
- <ul>
83
-
84
- <li class="file"><a href="../CHANGES.html">CHANGES</a></li>
85
-
86
- <li class="file"><a href="../LICENSE.html">LICENSE</a></li>
87
-
88
- <li class="file"><a href="../README.html">README</a></li>
89
-
90
- </ul>
91
- </div>
92
-
93
-
94
- <div id="classindex-section" class="section project-section">
95
- <h3 class="section-header">Class/Module Index
96
- <span class="search-toggle"><img src="../images/find.png"
97
- height="16" width="16" alt="[+]"
98
- title="show/hide quicksearch" /></span></h3>
99
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
100
- <fieldset>
101
- <legend>Quicksearch</legend>
102
- <input type="text" name="quicksearch" value=""
103
- class="quicksearch-field" />
104
- </fieldset>
105
- </form>
106
-
107
- <ul class="link-list">
108
-
109
- <li><a href="../MyExperimentREST.html">MyExperimentREST</a></li>
110
-
111
- <li><a href="../MyExperimentREST/MyExperimentIOData.html">MyExperimentREST::MyExperimentIOData</a></li>
112
-
113
- <li><a href="../MyExperimentREST/MyExperimentUser.html">MyExperimentREST::MyExperimentUser</a></li>
114
-
115
- <li><a href="../MyExperimentREST/MyExperimentWorkflow.html">MyExperimentREST::MyExperimentWorkflow</a></li>
116
-
117
- <li><a href="../MyExperimentREST/SessionCookie.html">MyExperimentREST::SessionCookie</a></li>
118
-
119
- <li><a href="../MyExperimentREST/Urls.html">MyExperimentREST::Urls</a></li>
120
-
121
- <li><a href="../MyExperimentREST/User.html">MyExperimentREST::User</a></li>
122
-
123
- <li><a href="../MyExperimentREST/Workflow.html">MyExperimentREST::Workflow</a></li>
124
-
125
- </ul>
126
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
127
- </div>
128
-
129
-
130
- </div>
131
- </div>
132
-
133
- <div id="documentation">
134
- <h1 class="class">MyExperimentREST::SessionCookie</h1>
135
-
136
- <div id="description" class="description">
137
-
138
- <p>Connects to myExperiment REST API and creates a session cookie object that
139
- can be used for basic authentication.</p>
140
-
141
- </div><!-- description -->
142
-
143
-
144
- <div id="5Buntitled-5D" class="documentation-section">
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
- <!-- Methods -->
154
-
155
- <div id="public-class-method-details" class="method-section section">
156
- <h3 class="section-header">Public Class Methods</h3>
157
-
158
-
159
- <div id="create_session_cookie-method" class="method-detail ">
160
- <a name="method-c-create_session_cookie"></a>
161
-
162
-
163
- <div class="method-heading">
164
- <span class="method-name">create_session_cookie</span><span
165
- class="method-args">(username, password)</span>
166
- <span class="method-click-advice">click to toggle source</span>
167
- </div>
168
-
169
-
170
- <div class="method-description">
171
-
172
- <p>Returns a session cookie as a string.</p>
173
-
174
-
175
-
176
- <div class="method-source-code" id="create_session_cookie-source">
177
- <pre>
178
- <span class="ruby-comment"># File lib/myexperiment-rest/authentication.rb, line 12</span>
179
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">create_session_cookie</span>(<span class="ruby-identifier">username</span>, <span class="ruby-identifier">password</span>)
180
- <span class="ruby-keyword">begin</span>
181
- <span class="ruby-comment"># Create a session cookie</span>
182
- <span class="ruby-identifier">response</span> = <span class="ruby-constant">RestClient</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">&quot;#{Urls::MYEXPERIMENT_URL}/#{Urls::SESSION_URL}&quot;</span>,
183
- <span class="ruby-node">&quot;&lt;session&gt;&lt;username&gt;#{username}&lt;/username&gt;&lt;password&gt;#{password}&lt;/password&gt;&lt;/session&gt;&quot;</span>,
184
- {<span class="ruby-value">:content_type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">'application/xml'</span>} )
185
- <span class="ruby-identifier">response</span>.<span class="ruby-identifier">cookies</span>
186
- <span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
187
- <span class="ruby-identifier">raise</span> <span class="ruby-string">&quot;REST call to acquire workflow resource failed!\n&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">e</span>
188
- <span class="ruby-keyword">end</span>
189
-
190
- <span class="ruby-keyword">end</span></pre>
191
- </div><!-- create_session_cookie-source -->
192
-
193
- </div>
194
-
195
-
196
-
197
-
198
- </div><!-- create_session_cookie-method -->
199
-
200
-
201
- </div><!-- public-class-method-details -->
202
-
203
- </div><!-- 5Buntitled-5D -->
204
-
205
-
206
- </div><!-- documentation -->
207
-
208
- <div id="validator-badges">
209
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
210
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
211
- Rdoc Generator</a> 2</small>.</p>
212
- </div>
213
-
214
- </body>
215
- </html>
216
-