zengin_lite 0.1.0

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.
@@ -0,0 +1,124 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Exception: ZenginLite::Error
8
+
9
+ &mdash; Documentation by YARD 0.9.38
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "ZenginLite::Error";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (E)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../ZenginLite.html" title="ZenginLite (module)">ZenginLite</a></span></span>
41
+ &raquo;
42
+ <span class="title">Error</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Exception: ZenginLite::Error
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">StandardError</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">StandardError</li>
78
+
79
+ <li class="next">ZenginLite::Error</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>lib/zengin_lite.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+ </div>
115
+
116
+ <div id="footer">
117
+ Generated on Sat Feb 7 19:33:57 2026 by
118
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
+ 0.9.38 (ruby-3.4.6).
120
+ </div>
121
+
122
+ </div>
123
+ </body>
124
+ </html>
@@ -0,0 +1,492 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Module: ZenginLite
8
+
9
+ &mdash; Documentation by YARD 0.9.38
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "ZenginLite";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (Z)</a> &raquo;
40
+
41
+
42
+ <span class="title">ZenginLite</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Module: ZenginLite
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ <dl>
80
+ <dt>Defined in:</dt>
81
+ <dd>lib/zengin_lite.rb<span class="defines">,<br />
82
+ lib/zengin_lite/bank.rb,<br /> lib/zengin_lite/branch.rb,<br /> lib/zengin_lite/version.rb,<br /> lib/zengin_lite/database.rb</span>
83
+ </dd>
84
+ </dl>
85
+
86
+ </div>
87
+
88
+ <h2>Defined Under Namespace</h2>
89
+ <p class="children">
90
+
91
+
92
+
93
+
94
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="ZenginLite/Bank.html" title="ZenginLite::Bank (class)">Bank</a></span>, <span class='object_link'><a href="ZenginLite/Branch.html" title="ZenginLite::Branch (class)">Branch</a></span>, <span class='object_link'><a href="ZenginLite/Database.html" title="ZenginLite::Database (class)">Database</a></span>, <span class='object_link'><a href="ZenginLite/Error.html" title="ZenginLite::Error (class)">Error</a></span>
95
+
96
+
97
+ </p>
98
+
99
+
100
+ <h2>
101
+ Constant Summary
102
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
103
+ </h2>
104
+
105
+ <dl class="constants">
106
+
107
+ <dt id="DB_PATH-constant" class="">DB_PATH =
108
+
109
+ </dt>
110
+ <dd><pre class="code"><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>../data/zengin.db</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid___dir__'>__dir__</span><span class='rparen'>)</span></pre></dd>
111
+
112
+ <dt id="VERSION-constant" class="">VERSION =
113
+
114
+ </dt>
115
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.1.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
116
+
117
+ </dl>
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ <h2>
128
+ Class Method Summary
129
+ <small><a href="#" class="summary_toggle">collapse</a></small>
130
+ </h2>
131
+
132
+ <ul class="summary">
133
+
134
+ <li class="public ">
135
+ <span class="summary_signature">
136
+
137
+ <a href="#bank-class_method" title="bank (class method)">.<strong>bank</strong>(code) &#x21d2; Object </a>
138
+
139
+
140
+
141
+ </span>
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+ <span class="summary_desc"><div class='inline'>
152
+ <p>Find bank by code.</p>
153
+ </div></span>
154
+
155
+ </li>
156
+
157
+
158
+ <li class="public ">
159
+ <span class="summary_signature">
160
+
161
+ <a href="#branch-class_method" title="branch (class method)">.<strong>branch</strong>(bank_code:, branch_code:) &#x21d2; Object </a>
162
+
163
+
164
+
165
+ </span>
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+ <span class="summary_desc"><div class='inline'>
176
+ <p>Find branch by bank code and branch code.</p>
177
+ </div></span>
178
+
179
+ </li>
180
+
181
+
182
+ <li class="public ">
183
+ <span class="summary_signature">
184
+
185
+ <a href="#each_bank-class_method" title="each_bank (class method)">.<strong>each_bank</strong>(&amp;block) &#x21d2; Object </a>
186
+
187
+
188
+
189
+ </span>
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+ <span class="summary_desc"><div class='inline'>
200
+ <p>Iterate through all banks (memory efficient).</p>
201
+ </div></span>
202
+
203
+ </li>
204
+
205
+
206
+ <li class="public ">
207
+ <span class="summary_signature">
208
+
209
+ <a href="#search_banks-class_method" title="search_banks (class method)">.<strong>search_banks</strong>(name: nil, kana: nil, limit: 10) &#x21d2; Object </a>
210
+
211
+
212
+
213
+ </span>
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+ <span class="summary_desc"><div class='inline'>
224
+ <p>Search banks by name or kana.</p>
225
+ </div></span>
226
+
227
+ </li>
228
+
229
+
230
+ <li class="public ">
231
+ <span class="summary_signature">
232
+
233
+ <a href="#stats-class_method" title="stats (class method)">.<strong>stats</strong> &#x21d2; Object </a>
234
+
235
+
236
+
237
+ </span>
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+ <span class="summary_desc"><div class='inline'>
248
+ <p>Get database statistics.</p>
249
+ </div></span>
250
+
251
+ </li>
252
+
253
+
254
+ </ul>
255
+
256
+
257
+
258
+
259
+ <div id="class_method_details" class="method_details_list">
260
+ <h2>Class Method Details</h2>
261
+
262
+
263
+ <div class="method_details first">
264
+ <h3 class="signature first" id="bank-class_method">
265
+
266
+ .<strong>bank</strong>(code) &#x21d2; <tt>Object</tt>
267
+
268
+
269
+
270
+
271
+
272
+ </h3><div class="docstring">
273
+ <div class="discussion">
274
+
275
+ <p>Find bank by code</p>
276
+
277
+
278
+ </div>
279
+ </div>
280
+ <div class="tags">
281
+
282
+
283
+ </div><table class="source_code">
284
+ <tr>
285
+ <td>
286
+ <pre class="lines">
287
+
288
+
289
+ 14
290
+ 15
291
+ 16
292
+ 17</pre>
293
+ </td>
294
+ <td>
295
+ <pre class="code"><span class="info file"># File 'lib/zengin_lite.rb', line 14</span>
296
+
297
+ <span class='kw'>def</span> <span class='id identifier rubyid_bank'>bank</span><span class='lparen'>(</span><span class='id identifier rubyid_code'>code</span><span class='rparen'>)</span>
298
+ <span class='id identifier rubyid_row'>row</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ZenginLite/Database.html" title="ZenginLite::Database (class)">Database</a></span></span><span class='period'>.</span><span class='id identifier rubyid_find_bank'><span class='object_link'><a href="ZenginLite/Database.html#find_bank-class_method" title="ZenginLite::Database.find_bank (method)">find_bank</a></span></span><span class='lparen'>(</span><span class='label'>code:</span> <span class='id identifier rubyid_code'>code</span><span class='rparen'>)</span>
299
+ <span class='const'><span class='object_link'><a href="ZenginLite/Bank.html" title="ZenginLite::Bank (class)">Bank</a></span></span><span class='period'>.</span><span class='id identifier rubyid_from_row'><span class='object_link'><a href="ZenginLite/Bank.html#from_row-class_method" title="ZenginLite::Bank.from_row (method)">from_row</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_row'>row</span><span class='rparen'>)</span>
300
+ <span class='kw'>end</span></pre>
301
+ </td>
302
+ </tr>
303
+ </table>
304
+ </div>
305
+
306
+ <div class="method_details ">
307
+ <h3 class="signature " id="branch-class_method">
308
+
309
+ .<strong>branch</strong>(bank_code:, branch_code:) &#x21d2; <tt>Object</tt>
310
+
311
+
312
+
313
+
314
+
315
+ </h3><div class="docstring">
316
+ <div class="discussion">
317
+
318
+ <p>Find branch by bank code and branch code</p>
319
+
320
+
321
+ </div>
322
+ </div>
323
+ <div class="tags">
324
+
325
+
326
+ </div><table class="source_code">
327
+ <tr>
328
+ <td>
329
+ <pre class="lines">
330
+
331
+
332
+ 34
333
+ 35
334
+ 36
335
+ 37</pre>
336
+ </td>
337
+ <td>
338
+ <pre class="code"><span class="info file"># File 'lib/zengin_lite.rb', line 34</span>
339
+
340
+ <span class='kw'>def</span> <span class='id identifier rubyid_branch'>branch</span><span class='lparen'>(</span><span class='label'>bank_code:</span><span class='comma'>,</span> <span class='label'>branch_code:</span><span class='rparen'>)</span>
341
+ <span class='id identifier rubyid_row'>row</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ZenginLite/Database.html" title="ZenginLite::Database (class)">Database</a></span></span><span class='period'>.</span><span class='id identifier rubyid_find_branch'><span class='object_link'><a href="ZenginLite/Database.html#find_branch-class_method" title="ZenginLite::Database.find_branch (method)">find_branch</a></span></span><span class='lparen'>(</span><span class='label'>bank_code:</span> <span class='id identifier rubyid_bank_code'>bank_code</span><span class='comma'>,</span> <span class='label'>branch_code:</span> <span class='id identifier rubyid_branch_code'>branch_code</span><span class='rparen'>)</span>
342
+ <span class='const'><span class='object_link'><a href="ZenginLite/Branch.html" title="ZenginLite::Branch (class)">Branch</a></span></span><span class='period'>.</span><span class='id identifier rubyid_from_row'><span class='object_link'><a href="ZenginLite/Branch.html#from_row-class_method" title="ZenginLite::Branch.from_row (method)">from_row</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_row'>row</span><span class='rparen'>)</span>
343
+ <span class='kw'>end</span></pre>
344
+ </td>
345
+ </tr>
346
+ </table>
347
+ </div>
348
+
349
+ <div class="method_details ">
350
+ <h3 class="signature " id="each_bank-class_method">
351
+
352
+ .<strong>each_bank</strong>(&amp;block) &#x21d2; <tt>Object</tt>
353
+
354
+
355
+
356
+
357
+
358
+ </h3><div class="docstring">
359
+ <div class="discussion">
360
+
361
+ <p>Iterate through all banks (memory efficient)</p>
362
+
363
+
364
+ </div>
365
+ </div>
366
+ <div class="tags">
367
+
368
+
369
+ </div><table class="source_code">
370
+ <tr>
371
+ <td>
372
+ <pre class="lines">
373
+
374
+
375
+ 27
376
+ 28
377
+ 29
378
+ 30
379
+ 31</pre>
380
+ </td>
381
+ <td>
382
+ <pre class="code"><span class="info file"># File 'lib/zengin_lite.rb', line 27</span>
383
+
384
+ <span class='kw'>def</span> <span class='id identifier rubyid_each_bank'>each_bank</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
385
+ <span class='const'><span class='object_link'><a href="ZenginLite/Database.html" title="ZenginLite::Database (class)">Database</a></span></span><span class='period'>.</span><span class='id identifier rubyid_each_bank'><span class='object_link'><a href="ZenginLite/Database.html#each_bank-class_method" title="ZenginLite::Database.each_bank (method)">each_bank</a></span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_row'>row</span><span class='op'>|</span>
386
+ <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="ZenginLite/Bank.html" title="ZenginLite::Bank (class)">Bank</a></span></span><span class='period'>.</span><span class='id identifier rubyid_from_row'><span class='object_link'><a href="ZenginLite/Bank.html#from_row-class_method" title="ZenginLite::Bank.from_row (method)">from_row</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_row'>row</span><span class='rparen'>)</span><span class='rparen'>)</span>
387
+ <span class='kw'>end</span>
388
+ <span class='kw'>end</span></pre>
389
+ </td>
390
+ </tr>
391
+ </table>
392
+ </div>
393
+
394
+ <div class="method_details ">
395
+ <h3 class="signature " id="search_banks-class_method">
396
+
397
+ .<strong>search_banks</strong>(name: nil, kana: nil, limit: 10) &#x21d2; <tt>Object</tt>
398
+
399
+
400
+
401
+
402
+
403
+ </h3><div class="docstring">
404
+ <div class="discussion">
405
+
406
+ <p>Search banks by name or kana</p>
407
+
408
+
409
+ </div>
410
+ </div>
411
+ <div class="tags">
412
+
413
+
414
+ </div><table class="source_code">
415
+ <tr>
416
+ <td>
417
+ <pre class="lines">
418
+
419
+
420
+ 20
421
+ 21
422
+ 22
423
+ 23
424
+ 24</pre>
425
+ </td>
426
+ <td>
427
+ <pre class="code"><span class="info file"># File 'lib/zengin_lite.rb', line 20</span>
428
+
429
+ <span class='kw'>def</span> <span class='id identifier rubyid_search_banks'>search_banks</span><span class='lparen'>(</span><span class='label'>name:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>kana:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>limit:</span> <span class='int'>10</span><span class='rparen'>)</span>
430
+ <span class='const'><span class='object_link'><a href="ZenginLite/Database.html" title="ZenginLite::Database (class)">Database</a></span></span><span class='period'>.</span><span class='id identifier rubyid_search_banks'><span class='object_link'><a href="ZenginLite/Database.html#search_banks-class_method" title="ZenginLite::Database.search_banks (method)">search_banks</a></span></span><span class='lparen'>(</span><span class='label'>name:</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='label'>kana:</span> <span class='id identifier rubyid_kana'>kana</span><span class='comma'>,</span> <span class='label'>limit:</span> <span class='id identifier rubyid_limit'>limit</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_row'>row</span><span class='op'>|</span>
431
+ <span class='const'><span class='object_link'><a href="ZenginLite/Bank.html" title="ZenginLite::Bank (class)">Bank</a></span></span><span class='period'>.</span><span class='id identifier rubyid_from_row'><span class='object_link'><a href="ZenginLite/Bank.html#from_row-class_method" title="ZenginLite::Bank.from_row (method)">from_row</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_row'>row</span><span class='rparen'>)</span>
432
+ <span class='kw'>end</span>
433
+ <span class='kw'>end</span></pre>
434
+ </td>
435
+ </tr>
436
+ </table>
437
+ </div>
438
+
439
+ <div class="method_details ">
440
+ <h3 class="signature " id="stats-class_method">
441
+
442
+ .<strong>stats</strong> &#x21d2; <tt>Object</tt>
443
+
444
+
445
+
446
+
447
+
448
+ </h3><div class="docstring">
449
+ <div class="discussion">
450
+
451
+ <p>Get database statistics</p>
452
+
453
+
454
+ </div>
455
+ </div>
456
+ <div class="tags">
457
+
458
+
459
+ </div><table class="source_code">
460
+ <tr>
461
+ <td>
462
+ <pre class="lines">
463
+
464
+
465
+ 40
466
+ 41
467
+ 42</pre>
468
+ </td>
469
+ <td>
470
+ <pre class="code"><span class="info file"># File 'lib/zengin_lite.rb', line 40</span>
471
+
472
+ <span class='kw'>def</span> <span class='id identifier rubyid_stats'>stats</span>
473
+ <span class='const'><span class='object_link'><a href="ZenginLite/Database.html" title="ZenginLite::Database (class)">Database</a></span></span><span class='period'>.</span><span class='id identifier rubyid_stats'><span class='object_link'><a href="ZenginLite/Database.html#stats-class_method" title="ZenginLite::Database.stats (method)">stats</a></span></span>
474
+ <span class='kw'>end</span></pre>
475
+ </td>
476
+ </tr>
477
+ </table>
478
+ </div>
479
+
480
+ </div>
481
+
482
+ </div>
483
+
484
+ <div id="footer">
485
+ Generated on Sat Feb 7 19:33:57 2026 by
486
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
487
+ 0.9.38 (ruby-3.4.6).
488
+ </div>
489
+
490
+ </div>
491
+ </body>
492
+ </html>