foreman_api 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/.gitignore +3 -0
  2. data/Gemfile +2 -0
  3. data/Rakefile +0 -1
  4. data/doc/ForemanApi.html +5 -5
  5. data/doc/ForemanApi/Resources.html +6 -6
  6. data/doc/ForemanApi/Resources/Architecture.html +260 -127
  7. data/doc/ForemanApi/Resources/Audit.html +118 -51
  8. data/doc/ForemanApi/Resources/AuthSourceLdap.html +314 -163
  9. data/doc/ForemanApi/Resources/Bookmark.html +266 -131
  10. data/doc/ForemanApi/Resources/CommonParameter.html +260 -127
  11. data/doc/ForemanApi/Resources/ComputeResource.html +314 -165
  12. data/doc/ForemanApi/Resources/ConfigTemplate.html +387 -195
  13. data/doc/ForemanApi/Resources/Dashboard.html +53 -27
  14. data/doc/ForemanApi/Resources/Domain.html +275 -137
  15. data/doc/ForemanApi/Resources/Environment.html +254 -123
  16. data/doc/ForemanApi/Resources/FactValue.html +75 -32
  17. data/doc/ForemanApi/Resources/Home.html +92 -43
  18. data/doc/ForemanApi/Resources/Host.html +401 -212
  19. data/doc/ForemanApi/Resources/HostClass.html +698 -0
  20. data/doc/ForemanApi/Resources/Hostgroup.html +308 -159
  21. data/doc/ForemanApi/Resources/HostgroupClass.html +712 -0
  22. data/doc/ForemanApi/Resources/Image.html +284 -143
  23. data/doc/ForemanApi/Resources/LookupKey.html +295 -140
  24. data/doc/ForemanApi/Resources/Medium.html +278 -145
  25. data/doc/ForemanApi/Resources/Model.html +272 -135
  26. data/doc/ForemanApi/Resources/OperatingSystem.html +323 -160
  27. data/doc/ForemanApi/Resources/Parameter.html +1512 -0
  28. data/doc/ForemanApi/Resources/Ptable.html +266 -131
  29. data/doc/ForemanApi/Resources/Puppetclass.html +295 -131
  30. data/doc/ForemanApi/Resources/Report.html +311 -71
  31. data/doc/ForemanApi/Resources/Role.html +248 -119
  32. data/doc/ForemanApi/Resources/Setting.html +156 -76
  33. data/doc/ForemanApi/Resources/SmartProxy.html +257 -125
  34. data/doc/ForemanApi/Resources/Subnet.html +332 -175
  35. data/doc/ForemanApi/Resources/TemplateCombination.html +826 -0
  36. data/doc/ForemanApi/Resources/TemplateKind.html +56 -29
  37. data/doc/ForemanApi/Resources/User.html +287 -145
  38. data/doc/ForemanApi/Resources/Usergroup.html +272 -115
  39. data/doc/_index.html +32 -4
  40. data/doc/class_list.html +1 -1
  41. data/doc/css/style.css +10 -0
  42. data/doc/file.MIT-LICENSE.html +29 -24
  43. data/doc/file.README.html +60 -59
  44. data/doc/frames.html +1 -1
  45. data/doc/index.html +60 -59
  46. data/doc/method_list.html +434 -266
  47. data/doc/top-level-namespace.html +3 -3
  48. data/lib/foreman_api.rb +0 -13
  49. data/lib/foreman_api/base.rb +77 -7
  50. data/lib/foreman_api/documentation.json +1 -1
  51. data/lib/foreman_api/resources/architecture.rb +27 -32
  52. data/lib/foreman_api/resources/audit.rb +9 -10
  53. data/lib/foreman_api/resources/auth_source_ldap.rb +47 -52
  54. data/lib/foreman_api/resources/bookmark.rb +31 -36
  55. data/lib/foreman_api/resources/common_parameter.rb +27 -32
  56. data/lib/foreman_api/resources/compute_resource.rb +43 -48
  57. data/lib/foreman_api/resources/config_template.rb +43 -50
  58. data/lib/foreman_api/resources/dashboard.rb +4 -5
  59. data/lib/foreman_api/resources/domain.rb +30 -35
  60. data/lib/foreman_api/resources/environment.rb +25 -30
  61. data/lib/foreman_api/resources/fact_value.rb +5 -5
  62. data/lib/foreman_api/resources/home.rb +7 -9
  63. data/lib/foreman_api/resources/host.rb +63 -69
  64. data/lib/foreman_api/resources/host_class.rb +39 -0
  65. data/lib/foreman_api/resources/hostgroup.rb +43 -48
  66. data/lib/foreman_api/resources/hostgroup_class.rb +40 -0
  67. data/lib/foreman_api/resources/image.rb +40 -45
  68. data/lib/foreman_api/resources/lookup_key.rb +36 -40
  69. data/lib/foreman_api/resources/medium.rb +29 -34
  70. data/lib/foreman_api/resources/model.rb +31 -36
  71. data/lib/foreman_api/resources/operating_system.rb +39 -45
  72. data/lib/foreman_api/resources/parameter.rb +96 -0
  73. data/lib/foreman_api/resources/ptable.rb +29 -34
  74. data/lib/foreman_api/resources/puppetclass.rb +31 -34
  75. data/lib/foreman_api/resources/report.rb +17 -20
  76. data/lib/foreman_api/resources/role.rb +25 -30
  77. data/lib/foreman_api/resources/setting.rb +15 -18
  78. data/lib/foreman_api/resources/smart_proxy.rb +27 -32
  79. data/lib/foreman_api/resources/subnet.rb +47 -52
  80. data/lib/foreman_api/resources/template_combination.rb +21 -25
  81. data/lib/foreman_api/resources/template_kind.rb +4 -5
  82. data/lib/foreman_api/resources/user.rb +36 -41
  83. data/lib/foreman_api/resources/usergroup.rb +25 -30
  84. data/lib/foreman_api/version.rb +1 -1
  85. metadata +10 -2
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: ForemanApi::Resources::FactValue
8
8
 
9
- &mdash; Documentation by YARD 0.8.3
9
+ &mdash; Documentation by YARD 0.8.5.2
10
10
 
11
11
  </title>
12
12
 
@@ -150,7 +150,7 @@
150
150
  <li class="public ">
151
151
  <span class="summary_signature">
152
152
 
153
- <a href="#index-instance_method" title="#index (instance method)">- (Object) <strong>index</strong>(params = { }, headers = { }) </a>
153
+ <a href="#index-instance_method" title="#index (instance method)">- (Array) <strong>index</strong>(params = {}, headers = {}) </a>
154
154
 
155
155
 
156
156
 
@@ -164,7 +164,10 @@
164
164
 
165
165
 
166
166
 
167
- <span class="summary_desc"><div class='inline'></div></span>
167
+ <span class="summary_desc"><div class='inline'><p>
168
+ First item: parsed data; second item: raw body.
169
+ </p>
170
+ </div></span>
168
171
 
169
172
  </li>
170
173
 
@@ -201,9 +204,10 @@
201
204
  <td>
202
205
  <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/fact_value.rb', line 4</span>
203
206
 
204
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span>
205
- <span class='ivar'>@doc</span> <span class='op'>||=</span> <span class='const'>ForemanApi</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>resources</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>fact_values</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
206
- <span class='kw'>end</span></pre>
207
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_doc identifier id'>doc</span>
208
+ <span class='rubyid_@doc ivar id'>@doc</span> <span class='opasgn op'>||=</span> <span class='rubyid_ForemanApi constant id'>ForemanApi</span><span class='dot token'>.</span><span class='rubyid_doc identifier id'>doc</span><span class='lbrack token'>[</span><span class='string val'>'resources'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>&quot;fact_values&quot;</span><span class='rbrack token'>]</span>
209
+ <span class='rubyid_end end kw'>end</span>
210
+ </pre>
207
211
  </td>
208
212
  </tr>
209
213
  </table>
@@ -218,7 +222,7 @@
218
222
  <div class="method_details first">
219
223
  <h3 class="signature first" id="index-instance_method">
220
224
 
221
- - (<tt>Object</tt>) <strong>index</strong>(params = { }, headers = { })
225
+ - (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
222
226
 
223
227
 
224
228
 
@@ -226,7 +230,10 @@
226
230
 
227
231
  </h3><div class="docstring">
228
232
  <div class="discussion">
229
-
233
+ <p>
234
+ First item: parsed data; second item: raw body
235
+ </p>
236
+
230
237
 
231
238
  </div>
232
239
  </div>
@@ -242,12 +249,13 @@
242
249
  <span class='type'>(<tt>Hash</tt>)</span>
243
250
 
244
251
 
245
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
252
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
246
253
 
247
254
 
248
255
  &mdash;
249
- <div class='inline'>
250
- <p>a hash of params to be passed to the service</p>
256
+ <div class='inline'><p>
257
+ a hash of params to be passed to the service
258
+ </p>
251
259
  </div>
252
260
 
253
261
  </li>
@@ -260,12 +268,13 @@
260
268
  <span class='type'>(<tt>Hash</tt>)</span>
261
269
 
262
270
 
263
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
271
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
264
272
 
265
273
 
266
274
  &mdash;
267
- <div class='inline'>
268
- <p>additional http headers</p>
275
+ <div class='inline'><p>
276
+ additional http headers
277
+ </p>
269
278
  </div>
270
279
 
271
280
  </li>
@@ -278,6 +287,20 @@
278
287
  <p class="tag_title">Options Hash (<tt>params</tt>):</p>
279
288
  <ul class="option">
280
289
 
290
+ <li>
291
+ <span class="name">host_id</span>
292
+ <span class="type">(<tt>Object</tt>)</span>
293
+ <span class="default">
294
+
295
+ </span>
296
+
297
+ &mdash; <div class='inline'><p>
298
+ Part of <tt>/api/hosts/:host_id/facts</tt> path
299
+ </p>
300
+ </div>
301
+
302
+ </li>
303
+
281
304
  <li>
282
305
  <span class="name">order</span>
283
306
  <span class="type">(<tt>String</tt>)</span>
@@ -285,8 +308,9 @@
285
308
 
286
309
  </span>
287
310
 
288
- &mdash; <div class='inline'>
289
- <p>Sort results</p>
311
+ &mdash; <div class='inline'><p>
312
+ Sort results
313
+ </p>
290
314
  </div>
291
315
 
292
316
  </li>
@@ -298,8 +322,9 @@
298
322
 
299
323
  </span>
300
324
 
301
- &mdash; <div class='inline'>
302
- <p>Paginate results</p>
325
+ &mdash; <div class='inline'><p>
326
+ Paginate results
327
+ </p>
303
328
  </div>
304
329
 
305
330
  </li>
@@ -311,8 +336,9 @@
311
336
 
312
337
  </span>
313
338
 
314
- &mdash; <div class='inline'>
315
- <p>Number of entries per request</p>
339
+ &mdash; <div class='inline'><p>
340
+ Number of entries per request
341
+ </p>
316
342
  </div>
317
343
 
318
344
  </li>
@@ -324,8 +350,9 @@
324
350
 
325
351
  </span>
326
352
 
327
- &mdash; <div class='inline'>
328
- <p>Filter results</p>
353
+ &mdash; <div class='inline'><p>
354
+ Filter results
355
+ </p>
329
356
  </div>
330
357
 
331
358
  </li>
@@ -335,6 +362,25 @@
335
362
 
336
363
 
337
364
 
365
+ <p class="tag_title">Returns:</p>
366
+ <ul class="return">
367
+
368
+ <li>
369
+
370
+
371
+ <span class='type'>(<tt>Array</tt>)</span>
372
+
373
+
374
+
375
+ &mdash;
376
+ <div class='inline'><p>
377
+ First item: parsed data; second item: raw body
378
+ </p>
379
+ </div>
380
+
381
+ </li>
382
+
383
+ </ul>
338
384
 
339
385
  </div><table class="source_code">
340
386
  <tr>
@@ -342,20 +388,17 @@
342
388
  <pre class="lines">
343
389
 
344
390
 
345
- 15
346
- 16
347
391
  17
348
392
  18
349
393
  19</pre>
350
394
  </td>
351
395
  <td>
352
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/fact_value.rb', line 15</span>
396
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/fact_value.rb', line 17</span>
353
397
 
354
- <span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
355
- <span class='id identifier rubyid_check_params'>check_params</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='symbol'>:allowed</span> <span class='op'>=&gt;</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:method</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid___method__'>__method__</span>
356
- <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_fill_params_in_url'>fill_params_in_url</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/api/fact_values</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
357
- <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='symbol'>:get</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
358
- <span class='kw'>end</span></pre>
398
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_index identifier id'>index</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
399
+ <span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
400
+ <span class='rubyid_end end kw'>end</span>
401
+ </pre>
359
402
  </td>
360
403
  </tr>
361
404
  </table>
@@ -366,9 +409,9 @@
366
409
  </div>
367
410
 
368
411
  <div id="footer">
369
- Generated on Mon Jan 21 15:44:35 2013 by
412
+ Generated on Tue Mar 19 09:50:26 2013 by
370
413
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
371
- 0.8.3 (ruby-1.9.3).
414
+ 0.8.5.2 (ruby-1.8.7).
372
415
  </div>
373
416
 
374
417
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: ForemanApi::Resources::Home
8
8
 
9
- &mdash; Documentation by YARD 0.8.3
9
+ &mdash; Documentation by YARD 0.8.5.2
10
10
 
11
11
  </title>
12
12
 
@@ -150,7 +150,7 @@
150
150
  <li class="public ">
151
151
  <span class="summary_signature">
152
152
 
153
- <a href="#index-instance_method" title="#index (instance method)">- (Object) <strong>index</strong>(params = { }, headers = { }) </a>
153
+ <a href="#index-instance_method" title="#index (instance method)">- (Array) <strong>index</strong>(params = {}, headers = {}) </a>
154
154
 
155
155
 
156
156
 
@@ -164,7 +164,10 @@
164
164
 
165
165
 
166
166
 
167
- <span class="summary_desc"><div class='inline'></div></span>
167
+ <span class="summary_desc"><div class='inline'><p>
168
+ First item: parsed data; second item: raw body.
169
+ </p>
170
+ </div></span>
168
171
 
169
172
  </li>
170
173
 
@@ -172,7 +175,7 @@
172
175
  <li class="public ">
173
176
  <span class="summary_signature">
174
177
 
175
- <a href="#status-instance_method" title="#status (instance method)">- (Object) <strong>status</strong>(params = { }, headers = { }) </a>
178
+ <a href="#status-instance_method" title="#status (instance method)">- (Array) <strong>status</strong>(params = {}, headers = {}) </a>
176
179
 
177
180
 
178
181
 
@@ -186,7 +189,10 @@
186
189
 
187
190
 
188
191
 
189
- <span class="summary_desc"><div class='inline'></div></span>
192
+ <span class="summary_desc"><div class='inline'><p>
193
+ First item: parsed data; second item: raw body.
194
+ </p>
195
+ </div></span>
190
196
 
191
197
  </li>
192
198
 
@@ -223,9 +229,10 @@
223
229
  <td>
224
230
  <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/home.rb', line 4</span>
225
231
 
226
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span>
227
- <span class='ivar'>@doc</span> <span class='op'>||=</span> <span class='const'>ForemanApi</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>resources</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>home</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
228
- <span class='kw'>end</span></pre>
232
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_doc identifier id'>doc</span>
233
+ <span class='rubyid_@doc ivar id'>@doc</span> <span class='opasgn op'>||=</span> <span class='rubyid_ForemanApi constant id'>ForemanApi</span><span class='dot token'>.</span><span class='rubyid_doc identifier id'>doc</span><span class='lbrack token'>[</span><span class='string val'>'resources'</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='string val'>&quot;home&quot;</span><span class='rbrack token'>]</span>
234
+ <span class='rubyid_end end kw'>end</span>
235
+ </pre>
229
236
  </td>
230
237
  </tr>
231
238
  </table>
@@ -240,7 +247,7 @@
240
247
  <div class="method_details first">
241
248
  <h3 class="signature first" id="index-instance_method">
242
249
 
243
- - (<tt>Object</tt>) <strong>index</strong>(params = { }, headers = { })
250
+ - (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
244
251
 
245
252
 
246
253
 
@@ -248,7 +255,10 @@
248
255
 
249
256
  </h3><div class="docstring">
250
257
  <div class="discussion">
251
-
258
+ <p>
259
+ First item: parsed data; second item: raw body
260
+ </p>
261
+
252
262
 
253
263
  </div>
254
264
  </div>
@@ -264,12 +274,13 @@
264
274
  <span class='type'>(<tt>Hash</tt>)</span>
265
275
 
266
276
 
267
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
277
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
268
278
 
269
279
 
270
280
  &mdash;
271
- <div class='inline'>
272
- <p>a hash of params to be passed to the service</p>
281
+ <div class='inline'><p>
282
+ a hash of params to be passed to the service
283
+ </p>
273
284
  </div>
274
285
 
275
286
  </li>
@@ -282,18 +293,38 @@
282
293
  <span class='type'>(<tt>Hash</tt>)</span>
283
294
 
284
295
 
285
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
296
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
286
297
 
287
298
 
288
299
  &mdash;
289
- <div class='inline'>
290
- <p>additional http headers</p>
300
+ <div class='inline'><p>
301
+ additional http headers
302
+ </p>
291
303
  </div>
292
304
 
293
305
  </li>
294
306
 
295
307
  </ul>
296
308
 
309
+ <p class="tag_title">Returns:</p>
310
+ <ul class="return">
311
+
312
+ <li>
313
+
314
+
315
+ <span class='type'>(<tt>Array</tt>)</span>
316
+
317
+
318
+
319
+ &mdash;
320
+ <div class='inline'><p>
321
+ First item: parsed data; second item: raw body
322
+ </p>
323
+ </div>
324
+
325
+ </li>
326
+
327
+ </ul>
297
328
 
298
329
  </div><table class="source_code">
299
330
  <tr>
@@ -301,20 +332,17 @@
301
332
  <pre class="lines">
302
333
 
303
334
 
304
- 11
305
335
  12
306
336
  13
307
- 14
308
- 15</pre>
337
+ 14</pre>
309
338
  </td>
310
339
  <td>
311
- <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/home.rb', line 11</span>
340
+ <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/home.rb', line 12</span>
312
341
 
313
- <span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
314
- <span class='id identifier rubyid_check_params'>check_params</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='symbol'>:allowed</span> <span class='op'>=&gt;</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='symbol'>:method</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid___method__'>__method__</span>
315
- <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_fill_params_in_url'>fill_params_in_url</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/api</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
316
- <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='symbol'>:get</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
317
- <span class='kw'>end</span></pre>
342
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_index identifier id'>index</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
343
+ <span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
344
+ <span class='rubyid_end end kw'>end</span>
345
+ </pre>
318
346
  </td>
319
347
  </tr>
320
348
  </table>
@@ -323,7 +351,7 @@
323
351
  <div class="method_details ">
324
352
  <h3 class="signature " id="status-instance_method">
325
353
 
326
- - (<tt>Object</tt>) <strong>status</strong>(params = { }, headers = { })
354
+ - (<tt>Array</tt>) <strong>status</strong>(params = {}, headers = {})
327
355
 
328
356
 
329
357
 
@@ -331,7 +359,10 @@
331
359
 
332
360
  </h3><div class="docstring">
333
361
  <div class="discussion">
334
-
362
+ <p>
363
+ First item: parsed data; second item: raw body
364
+ </p>
365
+
335
366
 
336
367
  </div>
337
368
  </div>
@@ -347,12 +378,13 @@
347
378
  <span class='type'>(<tt>Hash</tt>)</span>
348
379
 
349
380
 
350
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
381
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
351
382
 
352
383
 
353
384
  &mdash;
354
- <div class='inline'>
355
- <p>a hash of params to be passed to the service</p>
385
+ <div class='inline'><p>
386
+ a hash of params to be passed to the service
387
+ </p>
356
388
  </div>
357
389
 
358
390
  </li>
@@ -365,18 +397,38 @@
365
397
  <span class='type'>(<tt>Hash</tt>)</span>
366
398
 
367
399
 
368
- <em class="default">(defaults to: <tt>{ }</tt>)</em>
400
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
369
401
 
370
402
 
371
403
  &mdash;
372
- <div class='inline'>
373
- <p>additional http headers</p>
404
+ <div class='inline'><p>
405
+ additional http headers
406
+ </p>
374
407
  </div>
375
408
 
376
409
  </li>
377
410
 
378
411
  </ul>
379
412
 
413
+ <p class="tag_title">Returns:</p>
414
+ <ul class="return">
415
+
416
+ <li>
417
+
418
+
419
+ <span class='type'>(<tt>Array</tt>)</span>
420
+
421
+
422
+
423
+ &mdash;
424
+ <div class='inline'><p>
425
+ First item: parsed data; second item: raw body
426
+ </p>
427
+ </div>
428
+
429
+ </li>
430
+
431
+ </ul>
380
432
 
381
433
  </div><table class="source_code">
382
434
  <tr>
@@ -386,18 +438,15 @@
386
438
 
387
439
  20
388
440
  21
389
- 22
390
- 23
391
- 24</pre>
441
+ 22</pre>
392
442
  </td>
393
443
  <td>
394
444
  <pre class="code"><span class="info file"># File 'lib/foreman_api/resources/home.rb', line 20</span>
395
445
 
396
- <span class='kw'>def</span> <span class='id identifier rubyid_status'>status</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
397
- <span class='id identifier rubyid_check_params'>check_params</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='symbol'>:allowed</span> <span class='op'>=&gt;</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='symbol'>:method</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid___method__'>__method__</span>
398
- <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_fill_params_in_url'>fill_params_in_url</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/api/status</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
399
- <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='symbol'>:get</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
400
- <span class='kw'>end</span></pre>
446
+ <span class='rubyid_def def kw'>def</span> <span class='rubyid_status identifier id'>status</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
447
+ <span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid___method__ identifier id'>__method__</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
448
+ <span class='rubyid_end end kw'>end</span>
449
+ </pre>
401
450
  </td>
402
451
  </tr>
403
452
  </table>
@@ -408,9 +457,9 @@
408
457
  </div>
409
458
 
410
459
  <div id="footer">
411
- Generated on Mon Jan 21 15:44:34 2013 by
460
+ Generated on Tue Mar 19 09:50:23 2013 by
412
461
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
413
- 0.8.3 (ruby-1.9.3).
462
+ 0.8.5.2 (ruby-1.8.7).
414
463
  </div>
415
464
 
416
465
  </body>