service_client 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +17 -9
  4. data/doc/ServiceClient/Base.html +2 -2
  5. data/doc/ServiceClient/Errors/BadGatewayError.html +2 -2
  6. data/doc/ServiceClient/Errors/BadRequestError.html +2 -2
  7. data/doc/ServiceClient/Errors/BaseError.html +2 -2
  8. data/doc/ServiceClient/Errors/BlockedByWindowsParentalControlsError.html +2 -2
  9. data/doc/ServiceClient/Errors/ClientClosedRequestError.html +2 -2
  10. data/doc/ServiceClient/Errors/ConflictError.html +2 -2
  11. data/doc/ServiceClient/Errors/EnhanceYourCalmError.html +2 -2
  12. data/doc/ServiceClient/Errors/ExpectationFailedError.html +2 -2
  13. data/doc/ServiceClient/Errors/FailedDependencyError.html +2 -2
  14. data/doc/ServiceClient/Errors/ForbiddenError.html +2 -2
  15. data/doc/ServiceClient/Errors/GatewayTimeoutError.html +2 -2
  16. data/doc/ServiceClient/Errors/GoneError.html +2 -2
  17. data/doc/ServiceClient/Errors/HTTPVersionNotSupportedError.html +2 -2
  18. data/doc/ServiceClient/Errors/InsufficientStorageError.html +2 -2
  19. data/doc/ServiceClient/Errors/InternalServerError.html +2 -2
  20. data/doc/ServiceClient/Errors/LengthRequiredError.html +2 -2
  21. data/doc/ServiceClient/Errors/LockedError.html +2 -2
  22. data/doc/ServiceClient/Errors/LoopDetectedError.html +2 -2
  23. data/doc/ServiceClient/Errors/MethodNotAllowedError.html +2 -2
  24. data/doc/ServiceClient/Errors/NetworkAuthenticationRequiredError.html +2 -2
  25. data/doc/ServiceClient/Errors/NetworkConnectTimeoutError.html +2 -2
  26. data/doc/ServiceClient/Errors/NetworkReadTimeoutError.html +2 -2
  27. data/doc/ServiceClient/Errors/NoResponseError.html +2 -2
  28. data/doc/ServiceClient/Errors/NotAcceptableError.html +2 -2
  29. data/doc/ServiceClient/Errors/NotExtendedError.html +2 -2
  30. data/doc/ServiceClient/Errors/NotFoundError.html +2 -2
  31. data/doc/ServiceClient/Errors/NotImplementedError.html +2 -2
  32. data/doc/ServiceClient/Errors/PaymentRequiredError.html +2 -2
  33. data/doc/ServiceClient/Errors/PreconditionFailedError.html +2 -2
  34. data/doc/ServiceClient/Errors/PreconditionRequiredError.html +2 -2
  35. data/doc/ServiceClient/Errors/ProxyAuthenticationRequiredError.html +2 -2
  36. data/doc/ServiceClient/Errors/RequestEntityTooLargeError.html +2 -2
  37. data/doc/ServiceClient/Errors/RequestHeaderFieldsTooLargeError.html +2 -2
  38. data/doc/ServiceClient/Errors/RequestTimeoutError.html +2 -2
  39. data/doc/ServiceClient/Errors/RequestURITooLongError.html +2 -2
  40. data/doc/ServiceClient/Errors/RequestedRangeNotSatisfiableError.html +2 -2
  41. data/doc/ServiceClient/Errors/RetryWithError.html +2 -2
  42. data/doc/ServiceClient/Errors/ServiceUnavailableError.html +2 -2
  43. data/doc/ServiceClient/Errors/TooManyRequestsError.html +2 -2
  44. data/doc/ServiceClient/Errors/UnauthorizedError.html +2 -2
  45. data/doc/ServiceClient/Errors/UnavailableForLegalReasonsError.html +2 -2
  46. data/doc/ServiceClient/Errors/UnprocessableEntityError.html +2 -2
  47. data/doc/ServiceClient/Errors/UnsupportedMediaTypeError.html +2 -2
  48. data/doc/ServiceClient/Errors/UpgradeRequiredError.html +2 -2
  49. data/doc/ServiceClient/Errors/VariantAlsoNegotiatesError.html +2 -2
  50. data/doc/ServiceClient/Errors.html +2 -2
  51. data/doc/ServiceClient/ParamsRequired.html +2 -2
  52. data/doc/ServiceClient/Response.html +2 -2
  53. data/doc/ServiceClient.html +4 -4
  54. data/doc/_index.html +2 -2
  55. data/doc/file.README.html +128 -123
  56. data/doc/index.html +131 -132
  57. data/doc/top-level-namespace.html +2 -2
  58. data/lib/service_client/version.rb +1 -1
  59. 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
- class CustomerClient < ServiceClient::Base
90
- def find(id)
91
- response = get(“https://api.com/customers/#id”)
92
-
93
- response.data
94
- rescue ServiceClient::Errors::NoDataFoundError => e
95
- puts e.response.code # 404
96
- puts e.response.headers
97
- puts e.response.data
98
- rescue ServiceClient::Errors::InternalServerError => e
99
- puts e.response.code # 500
100
- puts e.response.headers
101
- puts e.response.data
102
- # All errors of HTTP status code
103
- end
104
-
105
- def all
106
- get(nil)
107
- rescue ServiceClient::ParamsRequired => e
108
- puts e.message
109
- end
110
- </pre>
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'>&#39;</span><span class='tstring_content'>https://api.com</span><span class='tstring_end'>&#39;</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'>&#39;</span><span class='tstring_content'>application/json</span><span class='tstring_end'>&#39;</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'>&quot;</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'>&quot;</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'>=&gt;</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'>=&gt;</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'>=&gt;</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
- <h1 id="get">GET</h1>
115
- <code>
116
- ServiceClient::Base.get(url, headers:)
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
- <h1 id="post">POST</h1>
120
- <code>
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
- <h1 id="put">PUT</h1>
125
- <code>
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
- <h1 id="delete">DELETE</h1>
130
- <code>
131
- ServiceClient::Base.delete(url, headers:, body:)
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
- <pre>
136
- # 400 Bad Request
137
- ServiceClient::Errors::BadRequestError
138
- # 401 Unauthorized
139
- ServiceClient::Errors::UnauthorizedError
140
- # 402 Payment Required
141
- ServiceClient::Errors::PaymentRequiredError
142
- # 403 Forbidden
143
- ServiceClient::Errors::ForbiddenError
144
- # 404 Not Found
145
- ServiceClient::Errors::NotFoundError
146
- # 405 Method Not Allowed
147
- ServiceClient::Errors::MethodNotAllowedError
148
- # 406 Not Acceptable
149
- ServiceClient::Errors::NotAcceptableError
150
- # 407 Proxy Authentication Required
151
- ServiceClient::Errors::ProxyAuthenticationRequiredError
152
- # 408 Request Timeout
153
- ServiceClient::Errors::RequestTimeoutError
154
- # 409 Conflict
155
- ServiceClient::Errors::ConflictError
156
- # 410 Gone
157
- ServiceClient::Errors::GoneError
158
- # 411 Length Required
159
- ServiceClient::Errors::LengthRequiredError
160
- # 412 Precondition Failed
161
- ServiceClient::Errors::PreconditionFailedError
162
- # 413 Request Entity Too Large
163
- ServiceClient::Errors::RequestEntityTooLargeError
164
- # 414 Request-URI Too Long
165
- ServiceClient::Errors::RequestURITooLongError
166
- # 415 Unsupported Media Type
167
- ServiceClient::Errors::UnsupportedMediaTypeError
168
- # 416 Requested Range Not Satisfiable
169
- ServiceClient::Errors::RequestedRangeNotSatisfiableError
170
- # 417 Expectation Failed
171
- ServiceClient::Errors::ExpectationFailedError
172
- # 420 Enhance Your Calm
173
- ServiceClient::Errors::EnhanceYourCalmError
174
- # 422 Unprocessable Entity
175
- ServiceClient::Errors::UnprocessableEntityError
176
- # 423 Locked
177
- ServiceClient::Errors::LockedError
178
- # 424 Failed Dependency
179
- ServiceClient::Errors::FailedDependencyError
180
- # 426 Upgrade Required
181
- ServiceClient::Errors::UpgradeRequiredError
182
- # 428 Precondition Required
183
- ServiceClient::Errors::PreconditionRequiredError
184
- # 429 Too Many Requests
185
- ServiceClient::Errors::TooManyRequestsError
186
- # 431 Request Header Fields Too Large
187
- ServiceClient::Errors::RequestHeaderFieldsTooLargeError
188
- # 444 No Response
189
- ServiceClient::Errors::NoResponseError
190
- # 449 Retry With
191
- ServiceClient::Errors::RetryWithError
192
- # 450 Bllocked by Windows Parental Controls
193
- ServiceClient::Errors::BlockedByWindowsParentalControlsError
194
- # 451 Unavailable For Legal Reasons
195
- ServiceClient::Errors::UnavailableForLegalReasonsError
196
- # 499 Client Closed Request
197
- ServiceClient::Errors::ClientClosedRequestError
198
- # 500 Internal Server Error
199
- ServiceClient::Errors::InternalServerError
200
- # 501 Not Implemented
201
- ServiceClient::Errors::NotImplementedError
202
- # 502 Bad Gateway
203
- ServiceClient::Errors::BadGatewayError
204
- # 503 Service Unavailable
205
- ServiceClient::Errors::ServiceUnavailableError
206
- # 504 Gateway Timeout
207
- ServiceClient::Errors::GatewayTimeoutError
208
- # 505 HTTP Version Not Supported
209
- ServiceClient::Errors::HTTPVersionNotSupportedError
210
- # 506 Variant Also Negotiates
211
- ServiceClient::Errors::VariantAlsoNegotiatesError
212
- # 507 Insufficient Storage
213
- ServiceClient::Errors::InsufficientStorageError
214
- # 508 Loop Detected
215
- ServiceClient::Errors::LoopDetectedError
216
- # 510 Not Extended
217
- ServiceClient::Errors::NotExtendedError
218
- # 511 Network Authentication Required
219
- ServiceClient::Errors::NetworkAuthenticationRequiredError
220
- # 598 Network Read Timeout Error
221
- ServiceClient::Errors::NetworkReadTimeoutError
222
- # 599 Network Connect Timeout Error
223
- ServiceClient::Errors::NetworkConnectTimeoutError
224
- </pre>
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 Thu Feb 23 08:38:58 2023 by
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.7.1).
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 Thu Feb 23 08:38:58 2023 by
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.7.1).
105
+ 0.9.28 (ruby-3.2.0).
106
106
  </div>
107
107
 
108
108
  </div>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ServiceClient
4
- VERSION = '0.1.7'
4
+ VERSION = '0.1.9'
5
5
  end
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.7
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-23 00:00:00.000000000 Z
11
+ date: 2023-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -130,7 +130,7 @@ metadata:
130
130
  homepage_uri: https://github.com/nemuba/service_client
131
131
  source_code_uri: https://github.com/nemuba/service_client
132
132
  changelog_uri: https://github.com/nemuba/service_client/blob/main/CHANGELOG.md
133
- documentation_uri: https://github.com/nemuba/service_client/blob/main/doc/index.html
133
+ documentation_uri: https://rubydoc.info/github/nemuba/service_client/main
134
134
  post_install_message:
135
135
  rdoc_options: []
136
136
  require_paths: