cft_smartcloud 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/bin/cft_smartcloud +37 -0
- data/cft_smartcloud.gemspec +88 -7
- data/lib/smartcloud.rb +12 -2
- data/lib/smartcloud_logger.rb +1 -1
- data/rdoc/classes/ConfigTable/BoolItem.html +172 -0
- data/rdoc/classes/ConfigTable/ExecItem.html +252 -0
- data/rdoc/classes/ConfigTable/Item.html +308 -0
- data/rdoc/classes/ConfigTable/MetaConfigEnvironment.html +445 -0
- data/rdoc/classes/ConfigTable/PackageSelectionItem.html +188 -0
- data/rdoc/classes/ConfigTable/PathItem.html +148 -0
- data/rdoc/classes/ConfigTable/ProgramItem.html +148 -0
- data/rdoc/classes/ConfigTable/SelectItem.html +175 -0
- data/rdoc/classes/ConfigTable.html +724 -0
- data/rdoc/classes/Enumerable.html +157 -0
- data/rdoc/classes/Errno/ENOTEMPTY.html +111 -0
- data/rdoc/classes/Errno.html +111 -0
- data/rdoc/classes/File.html +197 -0
- data/rdoc/classes/FileOperations.html +600 -0
- data/rdoc/classes/Hash.html +163 -0
- data/rdoc/classes/HookScriptAPI.html +413 -0
- data/rdoc/classes/IBMSmartCloud.html +1484 -0
- data/rdoc/classes/Installer/Shebang.html +245 -0
- data/rdoc/classes/Installer.html +1660 -0
- data/rdoc/classes/MIME/InvalidContentType.html +119 -0
- data/rdoc/classes/MIME/Type.html +1366 -0
- data/rdoc/classes/MIME/Types.html +643 -0
- data/rdoc/classes/MIME.html +124 -0
- data/rdoc/classes/MockSmartCloud.html +376 -0
- data/rdoc/classes/Net/HTTP.html +164 -0
- data/rdoc/classes/Net.html +122 -0
- data/rdoc/classes/RestClient/AbstractResponse.html +417 -0
- data/rdoc/classes/RestClient/Exception.html +305 -0
- data/rdoc/classes/RestClient/ExceptionWithResponse.html +119 -0
- data/rdoc/classes/RestClient/Exceptions.html +130 -0
- data/rdoc/classes/RestClient/MaxRedirectsReached.html +113 -0
- data/rdoc/classes/RestClient/Payload/Base.html +422 -0
- data/rdoc/classes/RestClient/Payload/Multipart.html +372 -0
- data/rdoc/classes/RestClient/Payload/Streamed.html +191 -0
- data/rdoc/classes/RestClient/Payload/UrlEncoded.html +202 -0
- data/rdoc/classes/RestClient/Payload.html +192 -0
- data/rdoc/classes/RestClient/RawResponse.html +236 -0
- data/rdoc/classes/RestClient/Redirect.html +168 -0
- data/rdoc/classes/RestClient/Request.html +950 -0
- data/rdoc/classes/RestClient/RequestFailed.html +178 -0
- data/rdoc/classes/RestClient/Resource.html +607 -0
- data/rdoc/classes/RestClient/Response.html +208 -0
- data/rdoc/classes/RestClient/ResponseForException.html +152 -0
- data/rdoc/classes/RestClient/SSLCertificateNotVerified.html +149 -0
- data/rdoc/classes/RestClient/ServerBrokeConnection.html +157 -0
- data/rdoc/classes/RestClient.html +737 -0
- data/rdoc/classes/SetupError.html +111 -0
- data/rdoc/classes/SmartcloudLogger.html +162 -0
- data/rdoc/classes/TestMIME.html +109 -0
- data/rdoc/classes/ToplevelInstaller.html +987 -0
- data/rdoc/classes/ToplevelInstallerMulti.html +593 -0
- data/rdoc/classes/XmlSimple/Cache.html +372 -0
- data/rdoc/classes/XmlSimple.html +475 -0
- data/rdoc/created.rid +1 -0
- data/rdoc/files/README_rdoc.html +198 -0
- data/rdoc/files/lib/hash_fix_rb.html +115 -0
- data/rdoc/files/lib/mime-types-1_16/lib/mime/types_rb.html +107 -0
- data/rdoc/files/lib/mime-types-1_16/setup_rb.html +157 -0
- data/rdoc/files/lib/mime-types-1_16/test/test_mime_type_rb.html +109 -0
- data/rdoc/files/lib/mime-types-1_16/test/test_mime_types_rb.html +109 -0
- data/rdoc/files/lib/mock_smartcloud_rb.html +115 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/rest-client_rb.html +107 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/rest_client_rb.html +108 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/abstract_response_rb.html +108 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/exceptions_rb.html +101 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/net_http_ext_rb.html +113 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/payload_rb.html +110 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/raw_response_rb.html +101 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/request_rb.html +110 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/resource_rb.html +101 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/response_rb.html +101 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient_rb.html +111 -0
- data/rdoc/files/lib/restclient_fix_rb.html +115 -0
- data/rdoc/files/lib/smartcloud_logger_rb.html +115 -0
- data/rdoc/files/lib/smartcloud_rb.html +143 -0
- data/rdoc/files/lib/xml-simple-1_0_12/lib/xmlsimple_rb.html +124 -0
- data/rdoc/fr_class_index.html +79 -0
- data/rdoc/fr_file_index.html +48 -0
- data/rdoc/fr_method_index.html +441 -0
- data/rdoc/index.html +26 -0
- data/rdoc/rdoc-style.css +208 -0
- metadata +90 -6
@@ -0,0 +1,422 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: RestClient::Payload::Base</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">RestClient::Payload::Base</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/lib/rest-client-1_6_3/lib/restclient/payload_rb.html">
|
59
|
+
lib/rest-client-1.6.3/lib/restclient/payload.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000296">build_stream</a>
|
90
|
+
<a href="#M000304">close</a>
|
91
|
+
<a href="#M000299">flatten_params</a>
|
92
|
+
<a href="#M000300">flatten_params_array</a>
|
93
|
+
<a href="#M000301">headers</a>
|
94
|
+
<a href="#M000305">inspect</a>
|
95
|
+
<a href="#M000303">length</a>
|
96
|
+
<a href="#M000295">new</a>
|
97
|
+
<a href="#M000297">read</a>
|
98
|
+
<a href="#M000306">short_inspect</a>
|
99
|
+
<a href="#M000302">size</a>
|
100
|
+
<a href="#M000298">to_s</a>
|
101
|
+
</div>
|
102
|
+
</div>
|
103
|
+
|
104
|
+
</div>
|
105
|
+
|
106
|
+
|
107
|
+
<!-- if includes -->
|
108
|
+
|
109
|
+
<div id="section">
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<!-- if method_list -->
|
119
|
+
<div id="methods">
|
120
|
+
<h3 class="section-bar">Public Class methods</h3>
|
121
|
+
|
122
|
+
<div id="method-M000295" class="method-detail">
|
123
|
+
<a name="M000295"></a>
|
124
|
+
|
125
|
+
<div class="method-heading">
|
126
|
+
<a href="#M000295" class="method-signature">
|
127
|
+
<span class="method-name">new</span><span class="method-args">(params)</span>
|
128
|
+
</a>
|
129
|
+
</div>
|
130
|
+
|
131
|
+
<div class="method-description">
|
132
|
+
<p><a class="source-toggle" href="#"
|
133
|
+
onclick="toggleCode('M000295-source');return false;">[Source]</a></p>
|
134
|
+
<div class="method-source-code" id="M000295-source">
|
135
|
+
<pre>
|
136
|
+
<span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient/payload.rb, line 37</span>
|
137
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">params</span>)
|
138
|
+
<span class="ruby-identifier">build_stream</span>(<span class="ruby-identifier">params</span>)
|
139
|
+
<span class="ruby-keyword kw">end</span>
|
140
|
+
</pre>
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
</div>
|
144
|
+
|
145
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
146
|
+
|
147
|
+
<div id="method-M000296" class="method-detail">
|
148
|
+
<a name="M000296"></a>
|
149
|
+
|
150
|
+
<div class="method-heading">
|
151
|
+
<a href="#M000296" class="method-signature">
|
152
|
+
<span class="method-name">build_stream</span><span class="method-args">(params)</span>
|
153
|
+
</a>
|
154
|
+
</div>
|
155
|
+
|
156
|
+
<div class="method-description">
|
157
|
+
<p><a class="source-toggle" href="#"
|
158
|
+
onclick="toggleCode('M000296-source');return false;">[Source]</a></p>
|
159
|
+
<div class="method-source-code" id="M000296-source">
|
160
|
+
<pre>
|
161
|
+
<span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient/payload.rb, line 41</span>
|
162
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build_stream</span>(<span class="ruby-identifier">params</span>)
|
163
|
+
<span class="ruby-ivar">@stream</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">params</span>)
|
164
|
+
<span class="ruby-ivar">@stream</span>.<span class="ruby-identifier">seek</span>(<span class="ruby-value">0</span>)
|
165
|
+
<span class="ruby-keyword kw">end</span>
|
166
|
+
</pre>
|
167
|
+
</div>
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
<div id="method-M000304" class="method-detail">
|
172
|
+
<a name="M000304"></a>
|
173
|
+
|
174
|
+
<div class="method-heading">
|
175
|
+
<a href="#M000304" class="method-signature">
|
176
|
+
<span class="method-name">close</span><span class="method-args">()</span>
|
177
|
+
</a>
|
178
|
+
</div>
|
179
|
+
|
180
|
+
<div class="method-description">
|
181
|
+
<p><a class="source-toggle" href="#"
|
182
|
+
onclick="toggleCode('M000304-source');return false;">[Source]</a></p>
|
183
|
+
<div class="method-source-code" id="M000304-source">
|
184
|
+
<pre>
|
185
|
+
<span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient/payload.rb, line 93</span>
|
186
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
187
|
+
<span class="ruby-ivar">@stream</span>.<span class="ruby-identifier">close</span>
|
188
|
+
<span class="ruby-keyword kw">end</span>
|
189
|
+
</pre>
|
190
|
+
</div>
|
191
|
+
</div>
|
192
|
+
</div>
|
193
|
+
|
194
|
+
<div id="method-M000299" class="method-detail">
|
195
|
+
<a name="M000299"></a>
|
196
|
+
|
197
|
+
<div class="method-heading">
|
198
|
+
<a href="#M000299" class="method-signature">
|
199
|
+
<span class="method-name">flatten_params</span><span class="method-args">(params, parent_key = nil)</span>
|
200
|
+
</a>
|
201
|
+
</div>
|
202
|
+
|
203
|
+
<div class="method-description">
|
204
|
+
<p>
|
205
|
+
Flatten parameters by converting hashes of hashes to flat hashes {keys1
|
206
|
+
=> {keys2 => value}} will be transformed into [keys1[key2], value]
|
207
|
+
</p>
|
208
|
+
<p><a class="source-toggle" href="#"
|
209
|
+
onclick="toggleCode('M000299-source');return false;">[Source]</a></p>
|
210
|
+
<div class="method-source-code" id="M000299-source">
|
211
|
+
<pre>
|
212
|
+
<span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient/payload.rb, line 54</span>
|
213
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">flatten_params</span>(<span class="ruby-identifier">params</span>, <span class="ruby-identifier">parent_key</span> = <span class="ruby-keyword kw">nil</span>)
|
214
|
+
<span class="ruby-identifier">result</span> = []
|
215
|
+
<span class="ruby-identifier">params</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
216
|
+
<span class="ruby-identifier">calculated_key</span> = <span class="ruby-identifier">parent_key</span> <span class="ruby-value">? </span><span class="ruby-node">"#{parent_key}[#{handle_key(key)}]"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">handle_key</span>(<span class="ruby-identifier">key</span>)
|
217
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Hash</span>
|
218
|
+
<span class="ruby-identifier">result</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">flatten_params</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">calculated_key</span>)
|
219
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Array</span>
|
220
|
+
<span class="ruby-identifier">result</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">flatten_params_array</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">calculated_key</span>)
|
221
|
+
<span class="ruby-keyword kw">else</span>
|
222
|
+
<span class="ruby-identifier">result</span> <span class="ruby-operator"><<</span> [<span class="ruby-identifier">calculated_key</span>, <span class="ruby-identifier">value</span>]
|
223
|
+
<span class="ruby-keyword kw">end</span>
|
224
|
+
<span class="ruby-keyword kw">end</span>
|
225
|
+
<span class="ruby-identifier">result</span>
|
226
|
+
<span class="ruby-keyword kw">end</span>
|
227
|
+
</pre>
|
228
|
+
</div>
|
229
|
+
</div>
|
230
|
+
</div>
|
231
|
+
|
232
|
+
<div id="method-M000300" class="method-detail">
|
233
|
+
<a name="M000300"></a>
|
234
|
+
|
235
|
+
<div class="method-heading">
|
236
|
+
<a href="#M000300" class="method-signature">
|
237
|
+
<span class="method-name">flatten_params_array</span><span class="method-args">(value, calculated_key)</span>
|
238
|
+
</a>
|
239
|
+
</div>
|
240
|
+
|
241
|
+
<div class="method-description">
|
242
|
+
<p><a class="source-toggle" href="#"
|
243
|
+
onclick="toggleCode('M000300-source');return false;">[Source]</a></p>
|
244
|
+
<div class="method-source-code" id="M000300-source">
|
245
|
+
<pre>
|
246
|
+
<span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient/payload.rb, line 69</span>
|
247
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">flatten_params_array</span> <span class="ruby-identifier">value</span>, <span class="ruby-identifier">calculated_key</span>
|
248
|
+
<span class="ruby-identifier">result</span> = []
|
249
|
+
<span class="ruby-identifier">value</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">elem</span><span class="ruby-operator">|</span>
|
250
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">elem</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Hash</span>
|
251
|
+
<span class="ruby-identifier">result</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">flatten_params</span>(<span class="ruby-identifier">elem</span>, <span class="ruby-identifier">calculated_key</span>)
|
252
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">elem</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Array</span>
|
253
|
+
<span class="ruby-identifier">result</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">flatten_params_array</span>(<span class="ruby-identifier">elem</span>, <span class="ruby-identifier">calculated_key</span>)
|
254
|
+
<span class="ruby-keyword kw">else</span>
|
255
|
+
<span class="ruby-identifier">result</span> <span class="ruby-operator"><<</span> [<span class="ruby-node">"#{calculated_key}[]"</span>, <span class="ruby-identifier">elem</span>]
|
256
|
+
<span class="ruby-keyword kw">end</span>
|
257
|
+
<span class="ruby-keyword kw">end</span>
|
258
|
+
<span class="ruby-identifier">result</span>
|
259
|
+
<span class="ruby-keyword kw">end</span>
|
260
|
+
</pre>
|
261
|
+
</div>
|
262
|
+
</div>
|
263
|
+
</div>
|
264
|
+
|
265
|
+
<div id="method-M000301" class="method-detail">
|
266
|
+
<a name="M000301"></a>
|
267
|
+
|
268
|
+
<div class="method-heading">
|
269
|
+
<a href="#M000301" class="method-signature">
|
270
|
+
<span class="method-name">headers</span><span class="method-args">()</span>
|
271
|
+
</a>
|
272
|
+
</div>
|
273
|
+
|
274
|
+
<div class="method-description">
|
275
|
+
<p><a class="source-toggle" href="#"
|
276
|
+
onclick="toggleCode('M000301-source');return false;">[Source]</a></p>
|
277
|
+
<div class="method-source-code" id="M000301-source">
|
278
|
+
<pre>
|
279
|
+
<span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient/payload.rb, line 83</span>
|
280
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">headers</span>
|
281
|
+
{<span class="ruby-value str">'Content-Length'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">size</span>.<span class="ruby-identifier">to_s</span>}
|
282
|
+
<span class="ruby-keyword kw">end</span>
|
283
|
+
</pre>
|
284
|
+
</div>
|
285
|
+
</div>
|
286
|
+
</div>
|
287
|
+
|
288
|
+
<div id="method-M000305" class="method-detail">
|
289
|
+
<a name="M000305"></a>
|
290
|
+
|
291
|
+
<div class="method-heading">
|
292
|
+
<a href="#M000305" class="method-signature">
|
293
|
+
<span class="method-name">inspect</span><span class="method-args">()</span>
|
294
|
+
</a>
|
295
|
+
</div>
|
296
|
+
|
297
|
+
<div class="method-description">
|
298
|
+
<p><a class="source-toggle" href="#"
|
299
|
+
onclick="toggleCode('M000305-source');return false;">[Source]</a></p>
|
300
|
+
<div class="method-source-code" id="M000305-source">
|
301
|
+
<pre>
|
302
|
+
<span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient/payload.rb, line 97</span>
|
303
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
304
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">inspect</span>
|
305
|
+
<span class="ruby-ivar">@stream</span>.<span class="ruby-identifier">seek</span>(<span class="ruby-value">0</span>)
|
306
|
+
<span class="ruby-identifier">result</span>
|
307
|
+
<span class="ruby-keyword kw">end</span>
|
308
|
+
</pre>
|
309
|
+
</div>
|
310
|
+
</div>
|
311
|
+
</div>
|
312
|
+
|
313
|
+
<div id="method-M000303" class="method-detail">
|
314
|
+
<a name="M000303"></a>
|
315
|
+
|
316
|
+
<div class="method-heading">
|
317
|
+
<span class="method-name">length</span><span class="method-args">()</span>
|
318
|
+
</div>
|
319
|
+
|
320
|
+
<div class="method-description">
|
321
|
+
<p>
|
322
|
+
Alias for <a href="Base.html#M000302">size</a>
|
323
|
+
</p>
|
324
|
+
</div>
|
325
|
+
</div>
|
326
|
+
|
327
|
+
<div id="method-M000297" class="method-detail">
|
328
|
+
<a name="M000297"></a>
|
329
|
+
|
330
|
+
<div class="method-heading">
|
331
|
+
<a href="#M000297" class="method-signature">
|
332
|
+
<span class="method-name">read</span><span class="method-args">(bytes=nil)</span>
|
333
|
+
</a>
|
334
|
+
</div>
|
335
|
+
|
336
|
+
<div class="method-description">
|
337
|
+
<p><a class="source-toggle" href="#"
|
338
|
+
onclick="toggleCode('M000297-source');return false;">[Source]</a></p>
|
339
|
+
<div class="method-source-code" id="M000297-source">
|
340
|
+
<pre>
|
341
|
+
<span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient/payload.rb, line 46</span>
|
342
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span>(<span class="ruby-identifier">bytes</span>=<span class="ruby-keyword kw">nil</span>)
|
343
|
+
<span class="ruby-ivar">@stream</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">bytes</span>)
|
344
|
+
<span class="ruby-keyword kw">end</span>
|
345
|
+
</pre>
|
346
|
+
</div>
|
347
|
+
</div>
|
348
|
+
</div>
|
349
|
+
|
350
|
+
<div id="method-M000306" class="method-detail">
|
351
|
+
<a name="M000306"></a>
|
352
|
+
|
353
|
+
<div class="method-heading">
|
354
|
+
<a href="#M000306" class="method-signature">
|
355
|
+
<span class="method-name">short_inspect</span><span class="method-args">()</span>
|
356
|
+
</a>
|
357
|
+
</div>
|
358
|
+
|
359
|
+
<div class="method-description">
|
360
|
+
<p><a class="source-toggle" href="#"
|
361
|
+
onclick="toggleCode('M000306-source');return false;">[Source]</a></p>
|
362
|
+
<div class="method-source-code" id="M000306-source">
|
363
|
+
<pre>
|
364
|
+
<span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient/payload.rb, line 103</span>
|
365
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">short_inspect</span>
|
366
|
+
(<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">500</span> <span class="ruby-operator">?</span> <span class="ruby-node">"#{size} byte(s) length"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">inspect</span>)
|
367
|
+
<span class="ruby-keyword kw">end</span>
|
368
|
+
</pre>
|
369
|
+
</div>
|
370
|
+
</div>
|
371
|
+
</div>
|
372
|
+
|
373
|
+
<div id="method-M000302" class="method-detail">
|
374
|
+
<a name="M000302"></a>
|
375
|
+
|
376
|
+
<div class="method-heading">
|
377
|
+
<a href="#M000302" class="method-signature">
|
378
|
+
<span class="method-name">size</span><span class="method-args">()</span>
|
379
|
+
</a>
|
380
|
+
</div>
|
381
|
+
|
382
|
+
<div class="method-description">
|
383
|
+
<p><a class="source-toggle" href="#"
|
384
|
+
onclick="toggleCode('M000302-source');return false;">[Source]</a></p>
|
385
|
+
<div class="method-source-code" id="M000302-source">
|
386
|
+
<pre>
|
387
|
+
<span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient/payload.rb, line 87</span>
|
388
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size</span>
|
389
|
+
<span class="ruby-ivar">@stream</span>.<span class="ruby-identifier">size</span>
|
390
|
+
<span class="ruby-keyword kw">end</span>
|
391
|
+
</pre>
|
392
|
+
</div>
|
393
|
+
</div>
|
394
|
+
</div>
|
395
|
+
|
396
|
+
<div id="method-M000298" class="method-detail">
|
397
|
+
<a name="M000298"></a>
|
398
|
+
|
399
|
+
<div class="method-heading">
|
400
|
+
<span class="method-name">to_s</span><span class="method-args">(bytes=nil)</span>
|
401
|
+
</div>
|
402
|
+
|
403
|
+
<div class="method-description">
|
404
|
+
<p>
|
405
|
+
Alias for <a href="Base.html#M000297">read</a>
|
406
|
+
</p>
|
407
|
+
</div>
|
408
|
+
</div>
|
409
|
+
|
410
|
+
|
411
|
+
</div>
|
412
|
+
|
413
|
+
|
414
|
+
</div>
|
415
|
+
|
416
|
+
|
417
|
+
<div id="validator-badges">
|
418
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
419
|
+
</div>
|
420
|
+
|
421
|
+
</body>
|
422
|
+
</html>
|