rhc-rest 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. data/COPYRIGHT +1 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +11 -0
  4. data/Rakefile +1 -0
  5. data/bin/sample-usage.rb +124 -0
  6. data/doc/Gemfile.html +119 -0
  7. data/doc/Rakefile.html +117 -0
  8. data/doc/Rhc/Rest/Application.html +571 -0
  9. data/doc/Rhc/Rest/BaseException.html +226 -0
  10. data/doc/Rhc/Rest/Cartridge.html +475 -0
  11. data/doc/Rhc/Rest/Client.html +609 -0
  12. data/doc/Rhc/Rest/ClientErrorException.html +167 -0
  13. data/doc/Rhc/Rest/Domain.html +457 -0
  14. data/doc/Rhc/Rest/Key.html +378 -0
  15. data/doc/Rhc/Rest/RequestDeniedException.html +166 -0
  16. data/doc/Rhc/Rest/ResourceAccessException.html +161 -0
  17. data/doc/Rhc/Rest/ResourceNotFoundException.html +166 -0
  18. data/doc/Rhc/Rest/ServerErrorException.html +161 -0
  19. data/doc/Rhc/Rest/ServiceUnavailableException.html +167 -0
  20. data/doc/Rhc/Rest/UnAuthorizedException.html +167 -0
  21. data/doc/Rhc/Rest/User.html +354 -0
  22. data/doc/Rhc/Rest/ValidationException.html +255 -0
  23. data/doc/Rhc/Rest.html +410 -0
  24. data/doc/Rhc.html +329 -0
  25. data/doc/created.rid +13 -0
  26. data/doc/doc/created.rid +0 -0
  27. data/doc/images/add.png +0 -0
  28. data/doc/images/brick.png +0 -0
  29. data/doc/images/brick_link.png +0 -0
  30. data/doc/images/bug.png +0 -0
  31. data/doc/images/bullet_black.png +0 -0
  32. data/doc/images/bullet_toggle_minus.png +0 -0
  33. data/doc/images/bullet_toggle_plus.png +0 -0
  34. data/doc/images/date.png +0 -0
  35. data/doc/images/delete.png +0 -0
  36. data/doc/images/find.png +0 -0
  37. data/doc/images/loadingAnimation.gif +0 -0
  38. data/doc/images/macFFBgHack.png +0 -0
  39. data/doc/images/package.png +0 -0
  40. data/doc/images/page_green.png +0 -0
  41. data/doc/images/page_white_text.png +0 -0
  42. data/doc/images/page_white_width.png +0 -0
  43. data/doc/images/plugin.png +0 -0
  44. data/doc/images/ruby.png +0 -0
  45. data/doc/images/tag_blue.png +0 -0
  46. data/doc/images/tag_green.png +0 -0
  47. data/doc/images/transparent.png +0 -0
  48. data/doc/images/wrench.png +0 -0
  49. data/doc/images/wrench_orange.png +0 -0
  50. data/doc/images/zoom.png +0 -0
  51. data/doc/index.html +112 -0
  52. data/doc/js/darkfish.js +153 -0
  53. data/doc/js/jquery.js +18 -0
  54. data/doc/js/navigation.js +142 -0
  55. data/doc/js/search.js +94 -0
  56. data/doc/js/search_index.js +1 -0
  57. data/doc/js/searcher.js +228 -0
  58. data/doc/rdoc.css +543 -0
  59. data/doc/table_of_contents.html +198 -0
  60. data/lib/rhc-rest/application.rb +81 -0
  61. data/lib/rhc-rest/cartridge.rb +64 -0
  62. data/lib/rhc-rest/client.rb +122 -0
  63. data/lib/rhc-rest/domain.rb +56 -0
  64. data/lib/rhc-rest/exceptions/exceptions.rb +73 -0
  65. data/lib/rhc-rest/key.rb +34 -0
  66. data/lib/rhc-rest/user.rb +41 -0
  67. data/lib/rhc-rest/version.rb +5 -0
  68. data/lib/rhc-rest.rb +155 -0
  69. data/rhc-rest.gemspec +26 -0
  70. data/rhc-rest.spec +79 -0
  71. metadata +162 -0
@@ -0,0 +1,167 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class Rhc::Rest::UnAuthorizedException - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../../index.html">Home</a>
28
+ <a href="../../table_of_contents.html#classes">Classes</a>
29
+ <a href="../../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/rhc-rest/exceptions/exceptions.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="ClientErrorException.html">Rhc::Rest::ClientErrorException</a>
63
+
64
+ </nav>
65
+
66
+
67
+
68
+ </div>
69
+
70
+ <div id="project-metadata">
71
+ <nav id="fileindex-section" class="section project-section">
72
+ <h3 class="section-header">Pages</h3>
73
+
74
+ <ul>
75
+
76
+ <li class="file"><a href="../../Gemfile.html">Gemfile</a>
77
+
78
+ <li class="file"><a href="../../Rakefile.html">Rakefile</a>
79
+
80
+ </ul>
81
+ </nav>
82
+
83
+ <nav id="classindex-section" class="section project-section">
84
+ <h3 class="section-header">Class and Module Index</h3>
85
+
86
+ <ul class="link-list">
87
+
88
+ <li><a href="../../Rhc.html">Rhc</a>
89
+
90
+ <li><a href="../../Rhc/Rest.html">Rhc::Rest</a>
91
+
92
+ <li><a href="../../Rhc/Rest/Application.html">Rhc::Rest::Application</a>
93
+
94
+ <li><a href="../../Rhc/Rest/BaseException.html">Rhc::Rest::BaseException</a>
95
+
96
+ <li><a href="../../Rhc/Rest/Cartridge.html">Rhc::Rest::Cartridge</a>
97
+
98
+ <li><a href="../../Rhc/Rest/Client.html">Rhc::Rest::Client</a>
99
+
100
+ <li><a href="../../Rhc/Rest/ClientErrorException.html">Rhc::Rest::ClientErrorException</a>
101
+
102
+ <li><a href="../../Rhc/Rest/Domain.html">Rhc::Rest::Domain</a>
103
+
104
+ <li><a href="../../Rhc/Rest/Key.html">Rhc::Rest::Key</a>
105
+
106
+ <li><a href="../../Rhc/Rest/RequestDeniedException.html">Rhc::Rest::RequestDeniedException</a>
107
+
108
+ <li><a href="../../Rhc/Rest/ResourceAccessException.html">Rhc::Rest::ResourceAccessException</a>
109
+
110
+ <li><a href="../../Rhc/Rest/ResourceNotFoundException.html">Rhc::Rest::ResourceNotFoundException</a>
111
+
112
+ <li><a href="../../Rhc/Rest/ServerErrorException.html">Rhc::Rest::ServerErrorException</a>
113
+
114
+ <li><a href="../../Rhc/Rest/ServiceUnavailableException.html">Rhc::Rest::ServiceUnavailableException</a>
115
+
116
+ <li><a href="../../Rhc/Rest/UnAuthorizedException.html">Rhc::Rest::UnAuthorizedException</a>
117
+
118
+ <li><a href="../../Rhc/Rest/User.html">Rhc::Rest::User</a>
119
+
120
+ <li><a href="../../Rhc/Rest/ValidationException.html">Rhc::Rest::ValidationException</a>
121
+
122
+ </ul>
123
+ </nav>
124
+
125
+ </div>
126
+ </nav>
127
+
128
+ <div id="documentation">
129
+ <h1 class="class">class Rhc::Rest::UnAuthorizedException</h1>
130
+
131
+ <div id="description" class="description">
132
+
133
+ <p>Exceptions thrown in case of an HTTP 401 is received.</p>
134
+
135
+ <p>401 Unauthorized</p>
136
+
137
+ <p>The request requires user authentication. If the request already included
138
+ Authorization credentials, then the 401 response indicates that
139
+ authorization has been refused for those credentials.</p>
140
+
141
+ </div><!-- description -->
142
+
143
+
144
+
145
+
146
+ <section id="5Buntitled-5D" class="documentation-section">
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+ <!-- Methods -->
156
+
157
+ </section><!-- 5Buntitled-5D -->
158
+
159
+ </div><!-- documentation -->
160
+
161
+
162
+ <footer id="validator-badges">
163
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
164
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
165
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
166
+ </footer>
167
+
@@ -0,0 +1,354 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class Rhc::Rest::User - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../../index.html">Home</a>
28
+ <a href="../../table_of_contents.html#classes">Classes</a>
29
+ <a href="../../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/rhc-rest/user.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link">Object
63
+
64
+ </nav>
65
+
66
+ <!-- Included Modules -->
67
+ <nav id="includes-section" class="section">
68
+ <h3 class="section-header">Included Modules</h3>
69
+
70
+ <ul class="link-list">
71
+
72
+
73
+ <li><a class="include" href="../Rest.html">Rhc::Rest</a>
74
+
75
+
76
+ </ul>
77
+ </nav>
78
+
79
+ <!-- Method Quickref -->
80
+ <nav id="method-list-section" class="section">
81
+ <h3 class="section-header">Methods</h3>
82
+
83
+ <ul class="link-list">
84
+
85
+ <li><a href="#method-c-new">::new</a>
86
+
87
+ <li><a href="#method-i-add_key">#add_key</a>
88
+
89
+ <li><a href="#method-i-find_key">#find_key</a>
90
+
91
+ <li><a href="#method-i-keys">#keys</a>
92
+
93
+ </ul>
94
+ </nav>
95
+
96
+ </div>
97
+
98
+ <div id="project-metadata">
99
+ <nav id="fileindex-section" class="section project-section">
100
+ <h3 class="section-header">Pages</h3>
101
+
102
+ <ul>
103
+
104
+ <li class="file"><a href="../../Gemfile.html">Gemfile</a>
105
+
106
+ <li class="file"><a href="../../Rakefile.html">Rakefile</a>
107
+
108
+ </ul>
109
+ </nav>
110
+
111
+ <nav id="classindex-section" class="section project-section">
112
+ <h3 class="section-header">Class and Module Index</h3>
113
+
114
+ <ul class="link-list">
115
+
116
+ <li><a href="../../Rhc.html">Rhc</a>
117
+
118
+ <li><a href="../../Rhc/Rest.html">Rhc::Rest</a>
119
+
120
+ <li><a href="../../Rhc/Rest/Application.html">Rhc::Rest::Application</a>
121
+
122
+ <li><a href="../../Rhc/Rest/BaseException.html">Rhc::Rest::BaseException</a>
123
+
124
+ <li><a href="../../Rhc/Rest/Cartridge.html">Rhc::Rest::Cartridge</a>
125
+
126
+ <li><a href="../../Rhc/Rest/Client.html">Rhc::Rest::Client</a>
127
+
128
+ <li><a href="../../Rhc/Rest/ClientErrorException.html">Rhc::Rest::ClientErrorException</a>
129
+
130
+ <li><a href="../../Rhc/Rest/Domain.html">Rhc::Rest::Domain</a>
131
+
132
+ <li><a href="../../Rhc/Rest/Key.html">Rhc::Rest::Key</a>
133
+
134
+ <li><a href="../../Rhc/Rest/RequestDeniedException.html">Rhc::Rest::RequestDeniedException</a>
135
+
136
+ <li><a href="../../Rhc/Rest/ResourceAccessException.html">Rhc::Rest::ResourceAccessException</a>
137
+
138
+ <li><a href="../../Rhc/Rest/ResourceNotFoundException.html">Rhc::Rest::ResourceNotFoundException</a>
139
+
140
+ <li><a href="../../Rhc/Rest/ServerErrorException.html">Rhc::Rest::ServerErrorException</a>
141
+
142
+ <li><a href="../../Rhc/Rest/ServiceUnavailableException.html">Rhc::Rest::ServiceUnavailableException</a>
143
+
144
+ <li><a href="../../Rhc/Rest/UnAuthorizedException.html">Rhc::Rest::UnAuthorizedException</a>
145
+
146
+ <li><a href="../../Rhc/Rest/User.html">Rhc::Rest::User</a>
147
+
148
+ <li><a href="../../Rhc/Rest/ValidationException.html">Rhc::Rest::ValidationException</a>
149
+
150
+ </ul>
151
+ </nav>
152
+
153
+ </div>
154
+ </nav>
155
+
156
+ <div id="documentation">
157
+ <h1 class="class">class Rhc::Rest::User</h1>
158
+
159
+ <div id="description" class="description">
160
+
161
+ </div><!-- description -->
162
+
163
+
164
+
165
+
166
+ <section id="5Buntitled-5D" class="documentation-section">
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+ <!-- Attributes -->
175
+ <section id="attribute-method-details" class="method-section section">
176
+ <h3 class="section-header">Attributes</h3>
177
+
178
+
179
+ <div id="attribute-i-login" class="method-detail">
180
+ <div class="method-heading attribute-method-heading">
181
+ <span class="method-name">login</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
+ </section><!-- attribute-method-details -->
193
+
194
+
195
+ <!-- Methods -->
196
+
197
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
198
+ <h3 class="section-header">Public Class Methods</h3>
199
+
200
+
201
+ <div id="method-c-new" class="method-detail ">
202
+
203
+ <div class="method-heading">
204
+ <span class="method-name">new</span><span
205
+ class="method-args">(args)</span>
206
+ <span class="method-click-advice">click to toggle source</span>
207
+ </div>
208
+
209
+
210
+ <div class="method-description">
211
+
212
+
213
+
214
+
215
+
216
+ <div class="method-source-code" id="new-source">
217
+ <pre><span class="ruby-comment"># File lib/rhc-rest/user.rb, line 28</span>
218
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span>)
219
+ <span class="ruby-ivar">@login</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value">:login</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">args</span>[<span class="ruby-string">&quot;login&quot;</span>]
220
+ <span class="ruby-ivar">@links</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value">:links</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">args</span>[<span class="ruby-string">&quot;links&quot;</span>]
221
+ <span class="ruby-keyword">end</span></pre>
222
+ </div><!-- new-source -->
223
+
224
+ </div>
225
+
226
+
227
+
228
+
229
+ </div><!-- new-method -->
230
+
231
+
232
+ </section><!-- public-class-method-details -->
233
+
234
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
235
+ <h3 class="section-header">Public Instance Methods</h3>
236
+
237
+
238
+ <div id="method-i-add_key" class="method-detail ">
239
+
240
+ <div class="method-heading">
241
+ <span class="method-name">add_key</span><span
242
+ class="method-args">(name, content, type)</span>
243
+ <span class="method-click-advice">click to toggle source</span>
244
+ </div>
245
+
246
+
247
+ <div class="method-description">
248
+
249
+ <p>Add <a href="Key.html">Key</a> for this user</p>
250
+
251
+
252
+
253
+ <div class="method-source-code" id="add_key-source">
254
+ <pre><span class="ruby-comment"># File lib/rhc-rest/user.rb, line 34</span>
255
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">add_key</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">content</span>, <span class="ruby-identifier">type</span>)
256
+ <span class="ruby-identifier">url</span> = <span class="ruby-identifier">@@end_point</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@links</span>[<span class="ruby-string">'ADD_KEY'</span>][<span class="ruby-string">'href'</span>]
257
+ <span class="ruby-identifier">method</span> = <span class="ruby-ivar">@links</span>[<span class="ruby-string">'ADD_KEY'</span>][<span class="ruby-string">'method'</span>]
258
+ <span class="ruby-identifier">payload</span> = {<span class="ruby-value">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">name</span>, <span class="ruby-value">:type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">type</span>, <span class="ruby-value">:content</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">content</span>}
259
+ <span class="ruby-identifier">request</span> = <span class="ruby-constant">RestClient</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-value">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">method</span>, <span class="ruby-value">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">@@headers</span>, <span class="ruby-value">:payload</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">payload</span>)
260
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">send</span>(<span class="ruby-identifier">request</span>)
261
+ <span class="ruby-keyword">end</span></pre>
262
+ </div><!-- add_key-source -->
263
+
264
+ </div>
265
+
266
+
267
+
268
+
269
+ </div><!-- add_key-method -->
270
+
271
+
272
+ <div id="method-i-find_key" class="method-detail ">
273
+
274
+ <div class="method-heading">
275
+ <span class="method-name">find_key</span><span
276
+ class="method-args">(name)</span>
277
+ <span class="method-click-advice">click to toggle source</span>
278
+ </div>
279
+
280
+
281
+ <div class="method-description">
282
+
283
+ <p>Find <a href="Key.html">Key</a> by name</p>
284
+
285
+
286
+
287
+ <div class="method-source-code" id="find_key-source">
288
+ <pre><span class="ruby-comment"># File lib/rhc-rest/user.rb, line 51</span>
289
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">find_key</span>(<span class="ruby-identifier">name</span>)
290
+ <span class="ruby-identifier">filtered</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
291
+ <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span>
292
+ <span class="ruby-comment">#TODO do a regex caomparison</span>
293
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">name</span>
294
+ <span class="ruby-identifier">filtered</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">key</span>)
295
+ <span class="ruby-keyword">end</span>
296
+ <span class="ruby-keyword">end</span>
297
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">filtered</span>
298
+ <span class="ruby-keyword">end</span></pre>
299
+ </div><!-- find_key-source -->
300
+
301
+ </div>
302
+
303
+
304
+
305
+
306
+ </div><!-- find_key-method -->
307
+
308
+
309
+ <div id="method-i-keys" class="method-detail ">
310
+
311
+ <div class="method-heading">
312
+ <span class="method-name">keys</span><span
313
+ class="method-args">()</span>
314
+ <span class="method-click-advice">click to toggle source</span>
315
+ </div>
316
+
317
+
318
+ <div class="method-description">
319
+
320
+ <p>Get all <a href="Key.html">Key</a> for this user</p>
321
+
322
+
323
+
324
+ <div class="method-source-code" id="keys-source">
325
+ <pre><span class="ruby-comment"># File lib/rhc-rest/user.rb, line 43</span>
326
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">keys</span>
327
+ <span class="ruby-identifier">url</span> = <span class="ruby-identifier">@@end_point</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@links</span>[<span class="ruby-string">'LIST_KEYS'</span>][<span class="ruby-string">'href'</span>]
328
+ <span class="ruby-identifier">method</span> = <span class="ruby-ivar">@links</span>[<span class="ruby-string">'LIST_KEYS'</span>][<span class="ruby-string">'method'</span>]
329
+ <span class="ruby-identifier">request</span> = <span class="ruby-constant">RestClient</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-value">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">method</span>, <span class="ruby-value">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">@@headers</span>)
330
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">send</span>(<span class="ruby-identifier">request</span>)
331
+ <span class="ruby-keyword">end</span></pre>
332
+ </div><!-- keys-source -->
333
+
334
+ </div>
335
+
336
+
337
+
338
+
339
+ </div><!-- keys-method -->
340
+
341
+
342
+ </section><!-- public-instance-method-details -->
343
+
344
+ </section><!-- 5Buntitled-5D -->
345
+
346
+ </div><!-- documentation -->
347
+
348
+
349
+ <footer id="validator-badges">
350
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
351
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
352
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
353
+ </footer>
354
+