service_client 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +17 -9
- data/doc/ServiceClient/Base.html +2 -2
- data/doc/ServiceClient/Errors/BadGatewayError.html +2 -2
- data/doc/ServiceClient/Errors/BadRequestError.html +2 -2
- data/doc/ServiceClient/Errors/BaseError.html +2 -2
- data/doc/ServiceClient/Errors/BlockedByWindowsParentalControlsError.html +2 -2
- data/doc/ServiceClient/Errors/ClientClosedRequestError.html +2 -2
- data/doc/ServiceClient/Errors/ConflictError.html +2 -2
- data/doc/ServiceClient/Errors/EnhanceYourCalmError.html +2 -2
- data/doc/ServiceClient/Errors/ExpectationFailedError.html +2 -2
- data/doc/ServiceClient/Errors/FailedDependencyError.html +2 -2
- data/doc/ServiceClient/Errors/ForbiddenError.html +2 -2
- data/doc/ServiceClient/Errors/GatewayTimeoutError.html +2 -2
- data/doc/ServiceClient/Errors/GoneError.html +2 -2
- data/doc/ServiceClient/Errors/HTTPVersionNotSupportedError.html +2 -2
- data/doc/ServiceClient/Errors/InsufficientStorageError.html +2 -2
- data/doc/ServiceClient/Errors/InternalServerError.html +2 -2
- data/doc/ServiceClient/Errors/LengthRequiredError.html +2 -2
- data/doc/ServiceClient/Errors/LockedError.html +2 -2
- data/doc/ServiceClient/Errors/LoopDetectedError.html +2 -2
- data/doc/ServiceClient/Errors/MethodNotAllowedError.html +2 -2
- data/doc/ServiceClient/Errors/NetworkAuthenticationRequiredError.html +2 -2
- data/doc/ServiceClient/Errors/NetworkConnectTimeoutError.html +2 -2
- data/doc/ServiceClient/Errors/NetworkReadTimeoutError.html +2 -2
- data/doc/ServiceClient/Errors/NoResponseError.html +2 -2
- data/doc/ServiceClient/Errors/NotAcceptableError.html +2 -2
- data/doc/ServiceClient/Errors/NotExtendedError.html +2 -2
- data/doc/ServiceClient/Errors/NotFoundError.html +2 -2
- data/doc/ServiceClient/Errors/NotImplementedError.html +2 -2
- data/doc/ServiceClient/Errors/PaymentRequiredError.html +2 -2
- data/doc/ServiceClient/Errors/PreconditionFailedError.html +2 -2
- data/doc/ServiceClient/Errors/PreconditionRequiredError.html +2 -2
- data/doc/ServiceClient/Errors/ProxyAuthenticationRequiredError.html +2 -2
- data/doc/ServiceClient/Errors/RequestEntityTooLargeError.html +2 -2
- data/doc/ServiceClient/Errors/RequestHeaderFieldsTooLargeError.html +2 -2
- data/doc/ServiceClient/Errors/RequestTimeoutError.html +2 -2
- data/doc/ServiceClient/Errors/RequestURITooLongError.html +2 -2
- data/doc/ServiceClient/Errors/RequestedRangeNotSatisfiableError.html +2 -2
- data/doc/ServiceClient/Errors/RetryWithError.html +2 -2
- data/doc/ServiceClient/Errors/ServiceUnavailableError.html +2 -2
- data/doc/ServiceClient/Errors/TooManyRequestsError.html +2 -2
- data/doc/ServiceClient/Errors/UnauthorizedError.html +2 -2
- data/doc/ServiceClient/Errors/UnavailableForLegalReasonsError.html +2 -2
- data/doc/ServiceClient/Errors/UnprocessableEntityError.html +2 -2
- data/doc/ServiceClient/Errors/UnsupportedMediaTypeError.html +2 -2
- data/doc/ServiceClient/Errors/UpgradeRequiredError.html +2 -2
- data/doc/ServiceClient/Errors/VariantAlsoNegotiatesError.html +2 -2
- data/doc/ServiceClient/Errors.html +2 -2
- data/doc/ServiceClient/ParamsRequired.html +2 -2
- data/doc/ServiceClient/Response.html +2 -2
- data/doc/ServiceClient.html +4 -4
- data/doc/_index.html +2 -2
- data/doc/file.README.html +128 -123
- data/doc/index.html +131 -132
- data/doc/top-level-namespace.html +2 -2
- data/lib/service_client/version.rb +1 -1
- metadata +3 -3
data/doc/index.html
CHANGED
@@ -85,143 +85,142 @@ gem install service_client
|
|
85
85
|
|
86
86
|
<p>Basic usage example:</p>
|
87
87
|
|
88
|
-
<pre>
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
</
|
88
|
+
<pre class="code ruby"><code class="ruby">
|
89
|
+
<span class='kw'>class</span> <span class='const'>CustomerClientServiceClient</span><span class='op'>::</span><span class='const'>Base</span>
|
90
|
+
<span class='id identifier rubyid_base_url'>base_url</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>https://api.com</span><span class='tstring_end'>'</span></span>
|
91
|
+
<span class='id identifier rubyid_default_headers'>default_headers</span> <span class='label'>content_type:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>application/json</span><span class='tstring_end'>'</span></span>
|
92
|
+
|
93
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_find'>find</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
|
94
|
+
<span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>customers/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_id'>id</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
95
|
+
|
96
|
+
<span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_data'>data</span>
|
97
|
+
<span class='kw'>rescue</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'>NoDataFoundError</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
|
98
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span> <span class='comment'># 404
|
99
|
+
</span> <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span>
|
100
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_data'>data</span>
|
101
|
+
<span class='kw'>rescue</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/InternalServerError.html" title="ServiceClient::Errors::InternalServerError (class)">InternalServerError</a></span></span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
|
102
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span> <span class='comment'># 500
|
103
|
+
</span> <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span>
|
104
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_data'>data</span>
|
105
|
+
<span class='comment'># All errors of HTTP status code
|
106
|
+
</span> <span class='kw'>end</span>
|
107
|
+
|
108
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_all'>all</span>
|
109
|
+
<span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
110
|
+
<span class='kw'>rescue</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/ParamsRequired.html" title="ServiceClient::ParamsRequired (class)">ParamsRequired</a></span></span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
|
111
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span>
|
112
|
+
<span class='kw'>end</span>
|
113
|
+
<span class='kw'>end</span>
|
114
|
+
</code></pre>
|
111
115
|
|
112
116
|
<h2 id="methods-of-class">Methods of class</h2>
|
113
117
|
|
114
|
-
<
|
115
|
-
<
|
116
|
-
|
117
|
-
</code>
|
118
|
+
<pre class="code ruby"><code class="ruby">
|
119
|
+
<span class='comment'># GET
|
120
|
+
</span><span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Base.html" title="ServiceClient::Base (class)">Base</a></span></span><span class='period'>.</span><span class='id identifier rubyid_get'><span class='object_link'><a href="ServiceClient/Base.html#get-class_method" title="ServiceClient::Base.get (method)">get</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>headers:</span><span class='rparen'>)</span>
|
118
121
|
|
119
|
-
<
|
120
|
-
<
|
121
|
-
ServiceClient::Base.post(url, headers:, body:)
|
122
|
-
</code>
|
122
|
+
<span class='comment'># POST
|
123
|
+
</span><span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Base.html" title="ServiceClient::Base (class)">Base</a></span></span><span class='period'>.</span><span class='id identifier rubyid_post'><span class='object_link'><a href="ServiceClient/Base.html#post-class_method" title="ServiceClient::Base.post (method)">post</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>headers:</span><span class='comma'>,</span> <span class='label'>body:</span><span class='rparen'>)</span>
|
123
124
|
|
124
|
-
<
|
125
|
-
<
|
126
|
-
ServiceClient::Base.put(url, headers:, body:)
|
127
|
-
</code>
|
125
|
+
<span class='comment'># PUT
|
126
|
+
</span><span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Base.html" title="ServiceClient::Base (class)">Base</a></span></span><span class='period'>.</span><span class='id identifier rubyid_put'><span class='object_link'><a href="ServiceClient/Base.html#put-class_method" title="ServiceClient::Base.put (method)">put</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>headers:</span><span class='comma'>,</span> <span class='label'>body:</span><span class='rparen'>)</span>
|
128
127
|
|
129
|
-
<
|
130
|
-
<
|
131
|
-
|
132
|
-
</code>
|
128
|
+
<span class='comment'># DELETE
|
129
|
+
</span><span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Base.html" title="ServiceClient::Base (class)">Base</a></span></span><span class='period'>.</span><span class='id identifier rubyid_delete'><span class='object_link'><a href="ServiceClient/Base.html#delete-class_method" title="ServiceClient::Base.delete (method)">delete</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>headers:</span><span class='comma'>,</span> <span class='label'>body:</span><span class='rparen'>)</span>
|
130
|
+
</code></pre>
|
133
131
|
|
134
132
|
<h2 id="classes-of-errors">Classes of errors</h2>
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
</
|
133
|
+
|
134
|
+
<pre class="code ruby"><code class="ruby">
|
135
|
+
<span class='comment'># 400 – Bad Request
|
136
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/BadRequestError.html" title="ServiceClient::Errors::BadRequestError (class)">BadRequestError</a></span></span>
|
137
|
+
<span class='comment'># 401 – Unauthorized
|
138
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/UnauthorizedError.html" title="ServiceClient::Errors::UnauthorizedError (class)">UnauthorizedError</a></span></span>
|
139
|
+
<span class='comment'># 402 – Payment Required
|
140
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/PaymentRequiredError.html" title="ServiceClient::Errors::PaymentRequiredError (class)">PaymentRequiredError</a></span></span>
|
141
|
+
<span class='comment'># 403 – Forbidden
|
142
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/ForbiddenError.html" title="ServiceClient::Errors::ForbiddenError (class)">ForbiddenError</a></span></span>
|
143
|
+
<span class='comment'># 404 – Not Found
|
144
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/NotFoundError.html" title="ServiceClient::Errors::NotFoundError (class)">NotFoundError</a></span></span>
|
145
|
+
<span class='comment'># 405 – Method Not Allowed
|
146
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/MethodNotAllowedError.html" title="ServiceClient::Errors::MethodNotAllowedError (class)">MethodNotAllowedError</a></span></span>
|
147
|
+
<span class='comment'># 406 – Not Acceptable
|
148
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/NotAcceptableError.html" title="ServiceClient::Errors::NotAcceptableError (class)">NotAcceptableError</a></span></span>
|
149
|
+
<span class='comment'># 407 – Proxy Authentication Required
|
150
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/ProxyAuthenticationRequiredError.html" title="ServiceClient::Errors::ProxyAuthenticationRequiredError (class)">ProxyAuthenticationRequiredError</a></span></span>
|
151
|
+
<span class='comment'># 408 – Request Timeout
|
152
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/RequestTimeoutError.html" title="ServiceClient::Errors::RequestTimeoutError (class)">RequestTimeoutError</a></span></span>
|
153
|
+
<span class='comment'># 409 – Conflict
|
154
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/ConflictError.html" title="ServiceClient::Errors::ConflictError (class)">ConflictError</a></span></span>
|
155
|
+
<span class='comment'># 410 – Gone
|
156
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/GoneError.html" title="ServiceClient::Errors::GoneError (class)">GoneError</a></span></span>
|
157
|
+
<span class='comment'># 411 – Length Required
|
158
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/LengthRequiredError.html" title="ServiceClient::Errors::LengthRequiredError (class)">LengthRequiredError</a></span></span>
|
159
|
+
<span class='comment'># 412 – Precondition Failed
|
160
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/PreconditionFailedError.html" title="ServiceClient::Errors::PreconditionFailedError (class)">PreconditionFailedError</a></span></span>
|
161
|
+
<span class='comment'># 413 – Request Entity Too Large
|
162
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/RequestEntityTooLargeError.html" title="ServiceClient::Errors::RequestEntityTooLargeError (class)">RequestEntityTooLargeError</a></span></span>
|
163
|
+
<span class='comment'># 414 – Request-URI Too Long
|
164
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/RequestURITooLongError.html" title="ServiceClient::Errors::RequestURITooLongError (class)">RequestURITooLongError</a></span></span>
|
165
|
+
<span class='comment'># 415 – Unsupported Media Type
|
166
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/UnsupportedMediaTypeError.html" title="ServiceClient::Errors::UnsupportedMediaTypeError (class)">UnsupportedMediaTypeError</a></span></span>
|
167
|
+
<span class='comment'># 416 – Requested Range Not Satisfiable
|
168
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/RequestedRangeNotSatisfiableError.html" title="ServiceClient::Errors::RequestedRangeNotSatisfiableError (class)">RequestedRangeNotSatisfiableError</a></span></span>
|
169
|
+
<span class='comment'># 417 – Expectation Failed
|
170
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/ExpectationFailedError.html" title="ServiceClient::Errors::ExpectationFailedError (class)">ExpectationFailedError</a></span></span>
|
171
|
+
<span class='comment'># 420 – Enhance Your Calm
|
172
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/EnhanceYourCalmError.html" title="ServiceClient::Errors::EnhanceYourCalmError (class)">EnhanceYourCalmError</a></span></span>
|
173
|
+
<span class='comment'># 422 – Unprocessable Entity
|
174
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/UnprocessableEntityError.html" title="ServiceClient::Errors::UnprocessableEntityError (class)">UnprocessableEntityError</a></span></span>
|
175
|
+
<span class='comment'># 423 – Locked
|
176
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/LockedError.html" title="ServiceClient::Errors::LockedError (class)">LockedError</a></span></span>
|
177
|
+
<span class='comment'># 424 – Failed Dependency
|
178
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/FailedDependencyError.html" title="ServiceClient::Errors::FailedDependencyError (class)">FailedDependencyError</a></span></span>
|
179
|
+
<span class='comment'># 426 – Upgrade Required
|
180
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/UpgradeRequiredError.html" title="ServiceClient::Errors::UpgradeRequiredError (class)">UpgradeRequiredError</a></span></span>
|
181
|
+
<span class='comment'># 428 – Precondition Required
|
182
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/PreconditionRequiredError.html" title="ServiceClient::Errors::PreconditionRequiredError (class)">PreconditionRequiredError</a></span></span>
|
183
|
+
<span class='comment'># 429 – Too Many Requests
|
184
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/TooManyRequestsError.html" title="ServiceClient::Errors::TooManyRequestsError (class)">TooManyRequestsError</a></span></span>
|
185
|
+
<span class='comment'># 431 – Request Header Fields Too Large
|
186
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/RequestHeaderFieldsTooLargeError.html" title="ServiceClient::Errors::RequestHeaderFieldsTooLargeError (class)">RequestHeaderFieldsTooLargeError</a></span></span>
|
187
|
+
<span class='comment'># 444 – No Response
|
188
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/NoResponseError.html" title="ServiceClient::Errors::NoResponseError (class)">NoResponseError</a></span></span>
|
189
|
+
<span class='comment'># 449 – Retry With
|
190
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/RetryWithError.html" title="ServiceClient::Errors::RetryWithError (class)">RetryWithError</a></span></span>
|
191
|
+
<span class='comment'># 450 – Bllocked by Windows Parental Controls
|
192
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/BlockedByWindowsParentalControlsError.html" title="ServiceClient::Errors::BlockedByWindowsParentalControlsError (class)">BlockedByWindowsParentalControlsError</a></span></span>
|
193
|
+
<span class='comment'># 451 – Unavailable For Legal Reasons
|
194
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/UnavailableForLegalReasonsError.html" title="ServiceClient::Errors::UnavailableForLegalReasonsError (class)">UnavailableForLegalReasonsError</a></span></span>
|
195
|
+
<span class='comment'># 499 – Client Closed Request
|
196
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/ClientClosedRequestError.html" title="ServiceClient::Errors::ClientClosedRequestError (class)">ClientClosedRequestError</a></span></span>
|
197
|
+
<span class='comment'># 500 – Internal Server Error
|
198
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/InternalServerError.html" title="ServiceClient::Errors::InternalServerError (class)">InternalServerError</a></span></span>
|
199
|
+
<span class='comment'># 501 – Not Implemented
|
200
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/NotImplementedError.html" title="ServiceClient::Errors::NotImplementedError (class)">NotImplementedError</a></span></span>
|
201
|
+
<span class='comment'># 502 – Bad Gateway
|
202
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/BadGatewayError.html" title="ServiceClient::Errors::BadGatewayError (class)">BadGatewayError</a></span></span>
|
203
|
+
<span class='comment'># 503 – Service Unavailable
|
204
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/ServiceUnavailableError.html" title="ServiceClient::Errors::ServiceUnavailableError (class)">ServiceUnavailableError</a></span></span>
|
205
|
+
<span class='comment'># 504 – Gateway Timeout
|
206
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/GatewayTimeoutError.html" title="ServiceClient::Errors::GatewayTimeoutError (class)">GatewayTimeoutError</a></span></span>
|
207
|
+
<span class='comment'># 505 – HTTP Version Not Supported
|
208
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/HTTPVersionNotSupportedError.html" title="ServiceClient::Errors::HTTPVersionNotSupportedError (class)">HTTPVersionNotSupportedError</a></span></span>
|
209
|
+
<span class='comment'># 506 – Variant Also Negotiates
|
210
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/VariantAlsoNegotiatesError.html" title="ServiceClient::Errors::VariantAlsoNegotiatesError (class)">VariantAlsoNegotiatesError</a></span></span>
|
211
|
+
<span class='comment'># 507 – Insufficient Storage
|
212
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/InsufficientStorageError.html" title="ServiceClient::Errors::InsufficientStorageError (class)">InsufficientStorageError</a></span></span>
|
213
|
+
<span class='comment'># 508 – Loop Detected
|
214
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/LoopDetectedError.html" title="ServiceClient::Errors::LoopDetectedError (class)">LoopDetectedError</a></span></span>
|
215
|
+
<span class='comment'># 510 – Not Extended
|
216
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/NotExtendedError.html" title="ServiceClient::Errors::NotExtendedError (class)">NotExtendedError</a></span></span>
|
217
|
+
<span class='comment'># 511 – Network Authentication Required
|
218
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/NetworkAuthenticationRequiredError.html" title="ServiceClient::Errors::NetworkAuthenticationRequiredError (class)">NetworkAuthenticationRequiredError</a></span></span>
|
219
|
+
<span class='comment'># 598 – Network Read Timeout Error
|
220
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/NetworkReadTimeoutError.html" title="ServiceClient::Errors::NetworkReadTimeoutError (class)">NetworkReadTimeoutError</a></span></span>
|
221
|
+
<span class='comment'># 599 – Network Connect Timeout Error
|
222
|
+
</span> <span class='const'><span class='object_link'><a href="ServiceClient.html" title="ServiceClient (module)">ServiceClient</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors.html" title="ServiceClient::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ServiceClient/Errors/NetworkConnectTimeoutError.html" title="ServiceClient::Errors::NetworkConnectTimeoutError (class)">NetworkConnectTimeoutError</a></span></span>
|
223
|
+
</code></pre>
|
225
224
|
|
226
225
|
<h2 id="development">Development</h2>
|
227
226
|
|
@@ -239,11 +238,11 @@ gem install service_client
|
|
239
238
|
</div></div>
|
240
239
|
|
241
240
|
<div id="footer">
|
242
|
-
Generated on
|
241
|
+
Generated on Sat Feb 25 13:12:15 2023 by
|
243
242
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
244
|
-
0.9.28 (ruby-2.
|
243
|
+
0.9.28 (ruby-3.2.0).
|
245
244
|
</div>
|
246
245
|
|
247
246
|
</div>
|
248
247
|
</body>
|
249
|
-
</html>
|
248
|
+
</html>
|
@@ -100,9 +100,9 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<div id="footer">
|
103
|
-
Generated on
|
103
|
+
Generated on Sat Feb 25 13:12:15 2023 by
|
104
104
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
105
|
-
0.9.28 (ruby-2.
|
105
|
+
0.9.28 (ruby-3.2.0).
|
106
106
|
</div>
|
107
107
|
|
108
108
|
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: service_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alef Ojeda de Oliveira
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
149
|
+
rubygems_version: 3.4.7
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Service client
|