obarc 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/.codeclimate.yml +19 -0
  3. data/.gitignore +5 -0
  4. data/.rubocop.yml +1156 -0
  5. data/.travis.yml +12 -0
  6. data/Gemfile +3 -0
  7. data/Gemfile.lock +78 -0
  8. data/README.md +133 -0
  9. data/Rakefile +39 -0
  10. data/doc/OBarc.html +210 -0
  11. data/doc/OBarc/Api.html +883 -0
  12. data/doc/OBarc/Session.html +5399 -0
  13. data/doc/OBarc/Utils.html +117 -0
  14. data/doc/OBarc/Utils/Exceptions.html +115 -0
  15. data/doc/OBarc/Utils/Exceptions/InvalidArgumentError.html +230 -0
  16. data/doc/OBarc/Utils/Exceptions/InvalidElementError.html +218 -0
  17. data/doc/OBarc/Utils/Exceptions/InvalidWordError.html +218 -0
  18. data/doc/OBarc/Utils/Exceptions/MissingArgumentError.html +230 -0
  19. data/doc/OBarc/Utils/Exceptions/OBarcArgumentError.html +151 -0
  20. data/doc/OBarc/Utils/Exceptions/OBarcError.html +291 -0
  21. data/doc/OBarc/Utils/Exceptions/OBarcResponseError.html +520 -0
  22. data/doc/OBarc/Utils/Exceptions/OverLimitError.html +218 -0
  23. data/doc/OBarc/Utils/Exceptions/TimeOutError.html +218 -0
  24. data/doc/OBarc/Utils/Helper.html +115 -0
  25. data/doc/OBarc/Utils/Helper/ObjectExtensions.html +105 -0
  26. data/doc/_index.html +239 -0
  27. data/doc/class_list.html +58 -0
  28. data/doc/css/common.css +1 -0
  29. data/doc/css/full_list.css +57 -0
  30. data/doc/css/style.css +339 -0
  31. data/doc/file.README.html +229 -0
  32. data/doc/file_list.html +60 -0
  33. data/doc/frames.html +26 -0
  34. data/doc/index.html +229 -0
  35. data/doc/js/app.js +219 -0
  36. data/doc/js/full_list.js +181 -0
  37. data/doc/js/jquery.js +4 -0
  38. data/doc/method_list.html +465 -0
  39. data/doc/top-level-namespace.html +112 -0
  40. data/graphics/obarc-logo.png +0 -0
  41. data/graphics/obarc-logo.xcf +0 -0
  42. data/lib/obarc.rb +14 -0
  43. data/lib/obarc/api.rb +220 -0
  44. data/lib/obarc/session.rb +514 -0
  45. data/lib/obarc/utils/exceptions.rb +35 -0
  46. data/lib/obarc/utils/helper.rb +18 -0
  47. data/lib/obarc/version.rb +3 -0
  48. data/obarc.gemspec +32 -0
  49. metadata +276 -0
@@ -0,0 +1,151 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Exception: OBarc::Utils::Exceptions::OBarcArgumentError
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../../';
20
+ framesUrl = "../../../frames.html#!OBarc/Utils/Exceptions/OBarcArgumentError.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../../_index.html">Index (O)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../../OBarc.html" title="OBarc (module)">OBarc</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Utils.html" title="OBarc::Utils (module)">Utils</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Exceptions.html" title="OBarc::Utils::Exceptions (module)">Exceptions</a></span></span>
36
+ &raquo;
37
+ <span class="title">OBarcArgumentError</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Exception: OBarc::Utils::Exceptions::OBarcArgumentError
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName"><span class='object_link'><a href="OBarcError.html" title="OBarc::Utils::Exceptions::OBarcError (class)">OBarcError</a></span></span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">StandardError</li>
82
+
83
+ <li class="next"><span class='object_link'><a href="OBarcError.html" title="OBarc::Utils::Exceptions::OBarcError (class)">OBarcError</a></span></li>
84
+
85
+ <li class="next">OBarc::Utils::Exceptions::OBarcArgumentError</li>
86
+
87
+ </ul>
88
+ <a href="#" class="inheritanceTree">show all</a>
89
+
90
+ </dd>
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <dt class="r2 last">Defined in:</dt>
101
+ <dd class="r2 last">lib/obarc/utils/exceptions.rb</dd>
102
+
103
+ </dl>
104
+ <div class="clear"></div>
105
+
106
+ <div id="subclasses">
107
+ <h2>Direct Known Subclasses</h2>
108
+ <p class="children"><span class='object_link'><a href="InvalidArgumentError.html" title="OBarc::Utils::Exceptions::InvalidArgumentError (class)">InvalidArgumentError</a></span>, <span class='object_link'><a href="MissingArgumentError.html" title="OBarc::Utils::Exceptions::MissingArgumentError (class)">MissingArgumentError</a></span></p>
109
+ </div>
110
+
111
+
112
+
113
+
114
+
115
+
116
+ <h2>Instance Attribute Summary</h2>
117
+
118
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="OBarcError.html" title="OBarc::Utils::Exceptions::OBarcError (class)">OBarcError</a></span></h3>
119
+ <p class="inherited"><span class='object_link'><a href="OBarcError.html#message-instance_method" title="OBarc::Utils::Exceptions::OBarcError#message (method)">#message</a></span></p>
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+ <h2>Method Summary</h2>
130
+
131
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="OBarcError.html" title="OBarc::Utils::Exceptions::OBarcError (class)">OBarcError</a></span></h3>
132
+ <p class="inherited"><span class='object_link'><a href="OBarcError.html#initialize-instance_method" title="OBarc::Utils::Exceptions::OBarcError#initialize (method)">#initialize</a></span></p>
133
+
134
+ <div id="constructor_details" class="method_details_list">
135
+ <h2>Constructor Details</h2>
136
+
137
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a href="OBarcError.html#initialize-instance_method" title="OBarc::Utils::Exceptions::OBarcError#initialize (method)">OBarc::Utils::Exceptions::OBarcError</a></span></p>
138
+
139
+ </div>
140
+
141
+
142
+ </div>
143
+
144
+ <div id="footer">
145
+ Generated on Tue Apr 4 17:29:30 2017 by
146
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
147
+ 0.8.7.6 (ruby-2.2.5).
148
+ </div>
149
+
150
+ </body>
151
+ </html>
@@ -0,0 +1,291 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Exception: OBarc::Utils::Exceptions::OBarcError
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../../';
20
+ framesUrl = "../../../frames.html#!OBarc/Utils/Exceptions/OBarcError.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../../_index.html">Index (O)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../../OBarc.html" title="OBarc (module)">OBarc</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Utils.html" title="OBarc::Utils (module)">Utils</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Exceptions.html" title="OBarc::Utils::Exceptions (module)">Exceptions</a></span></span>
36
+ &raquo;
37
+ <span class="title">OBarcError</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Exception: OBarc::Utils::Exceptions::OBarcError
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">StandardError</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">StandardError</li>
82
+
83
+ <li class="next">OBarc::Utils::Exceptions::OBarcError</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">lib/obarc/utils/exceptions.rb</dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+ <div id="subclasses">
105
+ <h2>Direct Known Subclasses</h2>
106
+ <p class="children"><span class='object_link'><a href="OBarcArgumentError.html" title="OBarc::Utils::Exceptions::OBarcArgumentError (class)">OBarcArgumentError</a></span></p>
107
+ </div>
108
+
109
+
110
+
111
+
112
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
113
+ <ul class="summary">
114
+
115
+ <li class="public ">
116
+ <span class="summary_signature">
117
+
118
+ <a href="#message-instance_method" title="#message (instance method)">- (Object) <strong>message</strong> </a>
119
+
120
+
121
+
122
+ </span>
123
+
124
+
125
+
126
+
127
+ <span class="note title readonly">readonly</span>
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+ <span class="summary_desc"><div class='inline'>
138
+ <p>Returns the value of attribute message.</p>
139
+ </div></span>
140
+
141
+ </li>
142
+
143
+
144
+ </ul>
145
+
146
+
147
+
148
+
149
+
150
+ <h2>
151
+ Instance Method Summary
152
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
153
+ </h2>
154
+
155
+ <ul class="summary">
156
+
157
+ <li class="public ">
158
+ <span class="summary_signature">
159
+
160
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (OBarcError) <strong>initialize</strong>(message) </a>
161
+
162
+
163
+
164
+ </span>
165
+
166
+
167
+ <span class="note title constructor">constructor</span>
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+ <span class="summary_desc"><div class='inline'>
177
+ <p>A new instance of OBarcError.</p>
178
+ </div></span>
179
+
180
+ </li>
181
+
182
+
183
+ </ul>
184
+
185
+
186
+
187
+ <div id="constructor_details" class="method_details_list">
188
+ <h2>Constructor Details</h2>
189
+
190
+ <div class="method_details first">
191
+ <h3 class="signature first" id="initialize-instance_method">
192
+
193
+ - (<tt><span class='object_link'><a href="" title="OBarc::Utils::Exceptions::OBarcError (class)">OBarcError</a></span></tt>) <strong>initialize</strong>(message)
194
+
195
+
196
+
197
+
198
+
199
+ </h3><div class="docstring">
200
+ <div class="discussion">
201
+
202
+ <p>Returns a new instance of OBarcError</p>
203
+
204
+
205
+ </div>
206
+ </div>
207
+ <div class="tags">
208
+
209
+
210
+ </div><table class="source_code">
211
+ <tr>
212
+ <td>
213
+ <pre class="lines">
214
+
215
+
216
+ 10
217
+ 11
218
+ 12</pre>
219
+ </td>
220
+ <td>
221
+ <pre class="code"><span class="info file"># File 'lib/obarc/utils/exceptions.rb', line 10</span>
222
+
223
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
224
+ <span class='ivar'>@message</span> <span class='op'>=</span> <span class='id identifier rubyid_message'>message</span>
225
+ <span class='kw'>end</span></pre>
226
+ </td>
227
+ </tr>
228
+ </table>
229
+ </div>
230
+
231
+ </div>
232
+
233
+ <div id="instance_attr_details" class="attr_details">
234
+ <h2>Instance Attribute Details</h2>
235
+
236
+
237
+ <span id=""></span>
238
+ <div class="method_details first">
239
+ <h3 class="signature first" id="message-instance_method">
240
+
241
+ - (<tt>Object</tt>) <strong>message</strong> <span class="extras">(readonly)</span>
242
+
243
+
244
+
245
+
246
+
247
+ </h3><div class="docstring">
248
+ <div class="discussion">
249
+
250
+ <p>Returns the value of attribute message</p>
251
+
252
+
253
+ </div>
254
+ </div>
255
+ <div class="tags">
256
+
257
+
258
+ </div><table class="source_code">
259
+ <tr>
260
+ <td>
261
+ <pre class="lines">
262
+
263
+
264
+ 9
265
+ 10
266
+ 11</pre>
267
+ </td>
268
+ <td>
269
+ <pre class="code"><span class="info file"># File 'lib/obarc/utils/exceptions.rb', line 9</span>
270
+
271
+ <span class='kw'>def</span> <span class='id identifier rubyid_message'>message</span>
272
+ <span class='ivar'>@message</span>
273
+ <span class='kw'>end</span></pre>
274
+ </td>
275
+ </tr>
276
+ </table>
277
+ </div>
278
+
279
+ </div>
280
+
281
+
282
+ </div>
283
+
284
+ <div id="footer">
285
+ Generated on Tue Apr 4 17:29:30 2017 by
286
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
287
+ 0.8.7.6 (ruby-2.2.5).
288
+ </div>
289
+
290
+ </body>
291
+ </html>
@@ -0,0 +1,520 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Exception: OBarc::Utils::Exceptions::OBarcResponseError
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../../';
20
+ framesUrl = "../../../frames.html#!OBarc/Utils/Exceptions/OBarcResponseError.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../../_index.html">Index (O)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../../OBarc.html" title="OBarc (module)">OBarc</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Utils.html" title="OBarc::Utils (module)">Utils</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Exceptions.html" title="OBarc::Utils::Exceptions (module)">Exceptions</a></span></span>
36
+ &raquo;
37
+ <span class="title">OBarcResponseError</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Exception: OBarc::Utils::Exceptions::OBarcResponseError
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName"><span class='object_link'><a href="OBarcError.html" title="OBarc::Utils::Exceptions::OBarcError (class)">OBarcError</a></span></span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">StandardError</li>
82
+
83
+ <li class="next"><span class='object_link'><a href="OBarcError.html" title="OBarc::Utils::Exceptions::OBarcError (class)">OBarcError</a></span></li>
84
+
85
+ <li class="next">OBarc::Utils::Exceptions::OBarcResponseError</li>
86
+
87
+ </ul>
88
+ <a href="#" class="inheritanceTree">show all</a>
89
+
90
+ </dd>
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <dt class="r2 last">Defined in:</dt>
101
+ <dd class="r2 last">lib/obarc/utils/exceptions.rb</dd>
102
+
103
+ </dl>
104
+ <div class="clear"></div>
105
+
106
+
107
+
108
+
109
+
110
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
111
+ <ul class="summary">
112
+
113
+ <li class="public ">
114
+ <span class="summary_signature">
115
+
116
+ <a href="#error_code-instance_method" title="#error_code (instance method)">- (Object) <strong>error_code</strong> </a>
117
+
118
+
119
+
120
+ </span>
121
+
122
+
123
+
124
+
125
+ <span class="note title readonly">readonly</span>
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ <span class="summary_desc"><div class='inline'>
136
+ <p>Returns the value of attribute error_code.</p>
137
+ </div></span>
138
+
139
+ </li>
140
+
141
+
142
+ <li class="public ">
143
+ <span class="summary_signature">
144
+
145
+ <a href="#error_message-instance_method" title="#error_message (instance method)">- (Object) <strong>error_message</strong> </a>
146
+
147
+
148
+
149
+ </span>
150
+
151
+
152
+
153
+
154
+ <span class="note title readonly">readonly</span>
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+ <span class="summary_desc"><div class='inline'>
165
+ <p>Returns the value of attribute error_message.</p>
166
+ </div></span>
167
+
168
+ </li>
169
+
170
+
171
+ <li class="public ">
172
+ <span class="summary_signature">
173
+
174
+ <a href="#http_code-instance_method" title="#http_code (instance method)">- (Object) <strong>http_code</strong> </a>
175
+
176
+
177
+
178
+ </span>
179
+
180
+
181
+
182
+
183
+ <span class="note title readonly">readonly</span>
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+ <span class="summary_desc"><div class='inline'>
194
+ <p>Returns the value of attribute http_code.</p>
195
+ </div></span>
196
+
197
+ </li>
198
+
199
+
200
+ </ul>
201
+
202
+
203
+
204
+
205
+
206
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="OBarcError.html" title="OBarc::Utils::Exceptions::OBarcError (class)">OBarcError</a></span></h3>
207
+ <p class="inherited"><span class='object_link'><a href="OBarcError.html#message-instance_method" title="OBarc::Utils::Exceptions::OBarcError#message (method)">#message</a></span></p>
208
+
209
+
210
+
211
+ <h2>
212
+ Instance Method Summary
213
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
214
+ </h2>
215
+
216
+ <ul class="summary">
217
+
218
+ <li class="public ">
219
+ <span class="summary_signature">
220
+
221
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (OBarcResponseError) <strong>initialize</strong>(response) </a>
222
+
223
+
224
+
225
+ </span>
226
+
227
+
228
+ <span class="note title constructor">constructor</span>
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+ <span class="summary_desc"><div class='inline'>
238
+ <p>A new instance of OBarcResponseError.</p>
239
+ </div></span>
240
+
241
+ </li>
242
+
243
+
244
+ <li class="public ">
245
+ <span class="summary_signature">
246
+
247
+ <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
248
+
249
+
250
+
251
+ </span>
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+ <span class="summary_desc"><div class='inline'></div></span>
262
+
263
+ </li>
264
+
265
+
266
+ </ul>
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+ <div id="constructor_details" class="method_details_list">
277
+ <h2>Constructor Details</h2>
278
+
279
+ <div class="method_details first">
280
+ <h3 class="signature first" id="initialize-instance_method">
281
+
282
+ - (<tt><span class='object_link'><a href="" title="OBarc::Utils::Exceptions::OBarcResponseError (class)">OBarcResponseError</a></span></tt>) <strong>initialize</strong>(response)
283
+
284
+
285
+
286
+
287
+
288
+ </h3><div class="docstring">
289
+ <div class="discussion">
290
+
291
+ <p>Returns a new instance of OBarcResponseError</p>
292
+
293
+
294
+ </div>
295
+ </div>
296
+ <div class="tags">
297
+
298
+
299
+ </div><table class="source_code">
300
+ <tr>
301
+ <td>
302
+ <pre class="lines">
303
+
304
+
305
+ 55
306
+ 56
307
+ 57
308
+ 58
309
+ 59
310
+ 60
311
+ 61
312
+ 62
313
+ 63
314
+ 64
315
+ 65
316
+ 66</pre>
317
+ </td>
318
+ <td>
319
+ <pre class="code"><span class="info file"># File 'lib/obarc/utils/exceptions.rb', line 55</span>
320
+
321
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='rparen'>)</span>
322
+ <span class='ivar'>@http_code</span> <span class='op'>=</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span>
323
+ <span class='id identifier rubyid_body'>body</span> <span class='op'>=</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span>
324
+ <span class='ivar'>@error_code</span><span class='comma'>,</span> <span class='ivar'>@error_message</span> <span class='op'>=</span>
325
+ <span class='kw'>if</span> <span class='id identifier rubyid_body'>body</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>error</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
326
+ <span class='lbracket'>[</span><span class='id identifier rubyid_body'>body</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>error</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>code</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_body'>body</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>error</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>message</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rbracket'>]</span>
327
+ <span class='kw'>else</span>
328
+ <span class='lbracket'>[</span><span class='id identifier rubyid_body'>body</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>code</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_body'>body</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>message</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rbracket'>]</span>
329
+ <span class='kw'>end</span>
330
+ <span class='ivar'>@error_message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>UnknownError[</span><span class='embexpr_beg'>#{</span><span class='ivar'>@http_code</span><span class='embexpr_end'>}</span><span class='tstring_content'>].</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='ivar'>@error_message</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
331
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Request Failed: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@error_message</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
332
+ <span class='kw'>end</span></pre>
333
+ </td>
334
+ </tr>
335
+ </table>
336
+ </div>
337
+
338
+ </div>
339
+
340
+ <div id="instance_attr_details" class="attr_details">
341
+ <h2>Instance Attribute Details</h2>
342
+
343
+
344
+ <span id=""></span>
345
+ <div class="method_details first">
346
+ <h3 class="signature first" id="error_code-instance_method">
347
+
348
+ - (<tt>Object</tt>) <strong>error_code</strong> <span class="extras">(readonly)</span>
349
+
350
+
351
+
352
+
353
+
354
+ </h3><div class="docstring">
355
+ <div class="discussion">
356
+
357
+ <p>Returns the value of attribute error_code</p>
358
+
359
+
360
+ </div>
361
+ </div>
362
+ <div class="tags">
363
+
364
+
365
+ </div><table class="source_code">
366
+ <tr>
367
+ <td>
368
+ <pre class="lines">
369
+
370
+
371
+ 53
372
+ 54
373
+ 55</pre>
374
+ </td>
375
+ <td>
376
+ <pre class="code"><span class="info file"># File 'lib/obarc/utils/exceptions.rb', line 53</span>
377
+
378
+ <span class='kw'>def</span> <span class='id identifier rubyid_error_code'>error_code</span>
379
+ <span class='ivar'>@error_code</span>
380
+ <span class='kw'>end</span></pre>
381
+ </td>
382
+ </tr>
383
+ </table>
384
+ </div>
385
+
386
+
387
+ <span id=""></span>
388
+ <div class="method_details ">
389
+ <h3 class="signature " id="error_message-instance_method">
390
+
391
+ - (<tt>Object</tt>) <strong>error_message</strong> <span class="extras">(readonly)</span>
392
+
393
+
394
+
395
+
396
+
397
+ </h3><div class="docstring">
398
+ <div class="discussion">
399
+
400
+ <p>Returns the value of attribute error_message</p>
401
+
402
+
403
+ </div>
404
+ </div>
405
+ <div class="tags">
406
+
407
+
408
+ </div><table class="source_code">
409
+ <tr>
410
+ <td>
411
+ <pre class="lines">
412
+
413
+
414
+ 53
415
+ 54
416
+ 55</pre>
417
+ </td>
418
+ <td>
419
+ <pre class="code"><span class="info file"># File 'lib/obarc/utils/exceptions.rb', line 53</span>
420
+
421
+ <span class='kw'>def</span> <span class='id identifier rubyid_error_message'>error_message</span>
422
+ <span class='ivar'>@error_message</span>
423
+ <span class='kw'>end</span></pre>
424
+ </td>
425
+ </tr>
426
+ </table>
427
+ </div>
428
+
429
+
430
+ <span id=""></span>
431
+ <div class="method_details ">
432
+ <h3 class="signature " id="http_code-instance_method">
433
+
434
+ - (<tt>Object</tt>) <strong>http_code</strong> <span class="extras">(readonly)</span>
435
+
436
+
437
+
438
+
439
+
440
+ </h3><div class="docstring">
441
+ <div class="discussion">
442
+
443
+ <p>Returns the value of attribute http_code</p>
444
+
445
+
446
+ </div>
447
+ </div>
448
+ <div class="tags">
449
+
450
+
451
+ </div><table class="source_code">
452
+ <tr>
453
+ <td>
454
+ <pre class="lines">
455
+
456
+
457
+ 53
458
+ 54
459
+ 55</pre>
460
+ </td>
461
+ <td>
462
+ <pre class="code"><span class="info file"># File 'lib/obarc/utils/exceptions.rb', line 53</span>
463
+
464
+ <span class='kw'>def</span> <span class='id identifier rubyid_http_code'>http_code</span>
465
+ <span class='ivar'>@http_code</span>
466
+ <span class='kw'>end</span></pre>
467
+ </td>
468
+ </tr>
469
+ </table>
470
+ </div>
471
+
472
+ </div>
473
+
474
+
475
+ <div id="instance_method_details" class="method_details_list">
476
+ <h2>Instance Method Details</h2>
477
+
478
+
479
+ <div class="method_details first">
480
+ <h3 class="signature first" id="to_s-instance_method">
481
+
482
+ - (<tt>Object</tt>) <strong>to_s</strong>
483
+
484
+
485
+
486
+
487
+
488
+ </h3><table class="source_code">
489
+ <tr>
490
+ <td>
491
+ <pre class="lines">
492
+
493
+
494
+ 68
495
+ 69
496
+ 70</pre>
497
+ </td>
498
+ <td>
499
+ <pre class="code"><span class="info file"># File 'lib/obarc/utils/exceptions.rb', line 68</span>
500
+
501
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
502
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@message</span><span class='embexpr_end'>}</span><span class='tstring_content'>. error code: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@error_code</span><span class='embexpr_end'>}</span><span class='tstring_content'>, http status code: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@http_code</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
503
+ <span class='kw'>end</span></pre>
504
+ </td>
505
+ </tr>
506
+ </table>
507
+ </div>
508
+
509
+ </div>
510
+
511
+ </div>
512
+
513
+ <div id="footer">
514
+ Generated on Mon Jun 6 17:02:06 2016 by
515
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
516
+ 0.8.7.6 (ruby-2.1.5).
517
+ </div>
518
+
519
+ </body>
520
+ </html>