student_mvp 0.1.8 → 0.1.9
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.
- checksums.yaml +4 -4
- data/doc/App_logger.html +47 -33
- data/doc/DB_client.html +20 -10
- data/doc/created.rid +10 -44
- data/doc/index.html +2 -81
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/table_of_contents.html +9 -697
- data/lib/data_access/DB_client/DB_client.rb +20 -1
- data/lib/logger/logger.rb +35 -0
- data/lib/student_mvp/version.rb +1 -1
- metadata +55 -34
- data/doc/Binary_tree.html +0 -300
- data/doc/Binary_tree_iterator.html +0 -217
- data/doc/Contact_sort_decorator.html +0 -219
- data/doc/Data_list.html +0 -625
- data/doc/Data_list_student_short.html +0 -148
- data/doc/Data_storage_strategy.html +0 -178
- data/doc/Data_table.html +0 -264
- data/doc/Deep_dup.html +0 -152
- data/doc/Field_filter_decorator.html +0 -219
- data/doc/Filter.html +0 -148
- data/doc/Filter_decorator.html +0 -209
- data/doc/Full_name_filter_decorator.html +0 -211
- data/doc/Full_name_sort_decorator.html +0 -217
- data/doc/Gemfile.html +0 -98
- data/doc/Git_sort_decorator.html +0 -220
- data/doc/Has_not_field_filter_decorator.html +0 -209
- data/doc/JSON_storage_strategy.html +0 -183
- data/doc/Person.html +0 -511
- data/doc/README_md.html +0 -147
- data/doc/Rakefile.html +0 -94
- data/doc/Sort_decorator.html +0 -214
- data/doc/Student.html +0 -755
- data/doc/StudentMvp/Error.html +0 -105
- data/doc/StudentMvp.html +0 -111
- data/doc/Student_short.html +0 -398
- data/doc/Students_list.html +0 -341
- data/doc/Students_list_DB.html +0 -361
- data/doc/Students_list_file.html +0 -460
- data/doc/Students_list_file_adapter.html +0 -341
- data/doc/Students_list_interface.html +0 -298
- data/doc/YAML_storage_strategy.html +0 -183
- data/doc/bin/setup.html +0 -96
data/doc/Students_list.html
DELETED
@@ -1,341 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7
|
-
|
8
|
-
<title>class Students_list - RDoc Documentation</title>
|
9
|
-
|
10
|
-
<meta name="keywords" content="ruby,class,Students_list">
|
11
|
-
|
12
|
-
<meta name="description" content="Documentation for the Students_list class">
|
13
|
-
|
14
|
-
<script type="text/javascript">
|
15
|
-
var rdoc_rel_prefix = "./";
|
16
|
-
var index_rel_prefix = "./";
|
17
|
-
</script>
|
18
|
-
|
19
|
-
<script src="./js/navigation.js" defer></script>
|
20
|
-
<script src="./js/search.js" defer></script>
|
21
|
-
<script src="./js/search_index.js" defer></script>
|
22
|
-
<script src="./js/searcher.js" defer></script>
|
23
|
-
<script src="./js/darkfish.js" defer></script>
|
24
|
-
|
25
|
-
<link href="./css/fonts.css" rel="stylesheet">
|
26
|
-
<link href="./css/rdoc.css" rel="stylesheet">
|
27
|
-
|
28
|
-
|
29
|
-
<body id="top" role="document" class="class">
|
30
|
-
<div id="navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="true" aria-controls="navigation">
|
31
|
-
<span aria-hidden="true">☰</span>
|
32
|
-
</div>
|
33
|
-
|
34
|
-
|
35
|
-
<nav id="navigation" role="navigation">
|
36
|
-
<div id="project-navigation">
|
37
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
38
|
-
<h2>
|
39
|
-
<a href="./index.html" rel="home">Home</a>
|
40
|
-
</h2>
|
41
|
-
|
42
|
-
<div id="table-of-contents-navigation">
|
43
|
-
<a href="./table_of_contents.html#pages">Pages</a>
|
44
|
-
<a href="./table_of_contents.html#classes">Classes</a>
|
45
|
-
<a href="./table_of_contents.html#methods">Methods</a>
|
46
|
-
</div>
|
47
|
-
</div>
|
48
|
-
|
49
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
50
|
-
<form action="#" method="get" accept-charset="utf-8">
|
51
|
-
<div id="search-field-wrapper">
|
52
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
53
|
-
aria-autocomplete="list" aria-controls="search-results"
|
54
|
-
type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
|
55
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
56
|
-
</div>
|
57
|
-
|
58
|
-
<ul id="search-results" aria-label="Search Results"
|
59
|
-
aria-busy="false" aria-expanded="false"
|
60
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
61
|
-
</form>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
</div>
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
<div id="parent-class-section" class="nav-section">
|
69
|
-
<h3>Ancestors</h3>
|
70
|
-
<ul><li>Object</li></ul>
|
71
|
-
</div>
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
<div class="nav-section">
|
77
|
-
<h3>Class Methods</h3>
|
78
|
-
<ul class="link-list" role="directory">
|
79
|
-
<li ><a href="#method-c-new">new</a></li>
|
80
|
-
</ul>
|
81
|
-
</div>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<div class="nav-section">
|
86
|
-
<h3>Instance Methods</h3>
|
87
|
-
<ul class="link-list" role="directory">
|
88
|
-
<li ><a href="#method-i-add_student">add_student</a></li>
|
89
|
-
<li ><a href="#method-i-delete_student">delete_student</a></li>
|
90
|
-
<li ><a href="#method-i-get_k_n_student_short_list">get_k_n_student_short_list</a></li>
|
91
|
-
<li ><a href="#method-i-get_student_by_id">get_student_by_id</a></li>
|
92
|
-
<li ><a href="#method-i-get_student_short_count">get_student_short_count</a></li>
|
93
|
-
<li ><a href="#method-i-replace_student">replace_student</a></li>
|
94
|
-
</ul>
|
95
|
-
</div>
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
<footer id="validator-badges" role="contentinfo">
|
100
|
-
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
101
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
|
102
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
103
|
-
</footer>
|
104
|
-
|
105
|
-
</nav>
|
106
|
-
|
107
|
-
<main role="main" aria-labelledby="class-Students_list">
|
108
|
-
<h1 id="class-Students_list" class="anchor-link class">
|
109
|
-
class Students_list
|
110
|
-
</h1>
|
111
|
-
|
112
|
-
<section class="description">
|
113
|
-
|
114
|
-
</section>
|
115
|
-
|
116
|
-
<section id="5Buntitled-5D" class="documentation-section anchor-link">
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section anchor-link">
|
123
|
-
<header>
|
124
|
-
<h3>Public Class Methods</h3>
|
125
|
-
</header>
|
126
|
-
|
127
|
-
<div id="method-c-new" class="method-detail anchor-link ">
|
128
|
-
<div class="method-header">
|
129
|
-
<div class="method-heading">
|
130
|
-
<a href="#method-c-new" title="Link to this method">
|
131
|
-
<span class="method-name">new</span>
|
132
|
-
<span class="method-args">(adapter)</span>
|
133
|
-
</a>
|
134
|
-
</div>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
<div class="method-controls">
|
138
|
-
<details class="method-source-toggle">
|
139
|
-
<summary>Source</summary>
|
140
|
-
</details>
|
141
|
-
</div>
|
142
|
-
|
143
|
-
<div class="method-description">
|
144
|
-
<div class="method-source-code" id="new-source">
|
145
|
-
<pre><span class="ruby-comment"># File lib/models/students_list/students_list.rb, line 2</span>
|
146
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">adapter</span>)
|
147
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">adapter</span> = <span class="ruby-identifier">adapter</span>
|
148
|
-
<span class="ruby-keyword">end</span></pre>
|
149
|
-
</div>
|
150
|
-
|
151
|
-
</div>
|
152
|
-
|
153
|
-
|
154
|
-
</div>
|
155
|
-
|
156
|
-
</section>
|
157
|
-
|
158
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
|
159
|
-
<header>
|
160
|
-
<h3>Public Instance Methods</h3>
|
161
|
-
</header>
|
162
|
-
|
163
|
-
<div id="method-i-add_student" class="method-detail anchor-link ">
|
164
|
-
<div class="method-header">
|
165
|
-
<div class="method-heading">
|
166
|
-
<a href="#method-i-add_student" title="Link to this method">
|
167
|
-
<span class="method-name">add_student</span>
|
168
|
-
<span class="method-args">(student)</span>
|
169
|
-
</a>
|
170
|
-
</div>
|
171
|
-
</div>
|
172
|
-
|
173
|
-
<div class="method-controls">
|
174
|
-
<details class="method-source-toggle">
|
175
|
-
<summary>Source</summary>
|
176
|
-
</details>
|
177
|
-
</div>
|
178
|
-
|
179
|
-
<div class="method-description">
|
180
|
-
<div class="method-source-code" id="add_student-source">
|
181
|
-
<pre><span class="ruby-comment"># File lib/models/students_list/students_list.rb, line 14</span>
|
182
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add_student</span>(<span class="ruby-identifier">student</span>)
|
183
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">adapter</span>.<span class="ruby-identifier">add_student</span>(<span class="ruby-identifier">student</span>)
|
184
|
-
<span class="ruby-keyword">end</span></pre>
|
185
|
-
</div>
|
186
|
-
|
187
|
-
</div>
|
188
|
-
|
189
|
-
|
190
|
-
</div>
|
191
|
-
|
192
|
-
<div id="method-i-delete_student" class="method-detail anchor-link ">
|
193
|
-
<div class="method-header">
|
194
|
-
<div class="method-heading">
|
195
|
-
<a href="#method-i-delete_student" title="Link to this method">
|
196
|
-
<span class="method-name">delete_student</span>
|
197
|
-
<span class="method-args">(id)</span>
|
198
|
-
</a>
|
199
|
-
</div>
|
200
|
-
</div>
|
201
|
-
|
202
|
-
<div class="method-controls">
|
203
|
-
<details class="method-source-toggle">
|
204
|
-
<summary>Source</summary>
|
205
|
-
</details>
|
206
|
-
</div>
|
207
|
-
|
208
|
-
<div class="method-description">
|
209
|
-
<div class="method-source-code" id="delete_student-source">
|
210
|
-
<pre><span class="ruby-comment"># File lib/models/students_list/students_list.rb, line 22</span>
|
211
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">delete_student</span>(<span class="ruby-identifier">id</span>)
|
212
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">adapter</span>.<span class="ruby-identifier">delete_student</span>(<span class="ruby-identifier">id</span>)
|
213
|
-
<span class="ruby-keyword">end</span></pre>
|
214
|
-
</div>
|
215
|
-
|
216
|
-
</div>
|
217
|
-
|
218
|
-
|
219
|
-
</div>
|
220
|
-
|
221
|
-
<div id="method-i-get_k_n_student_short_list" class="method-detail anchor-link ">
|
222
|
-
<div class="method-header">
|
223
|
-
<div class="method-heading">
|
224
|
-
<a href="#method-i-get_k_n_student_short_list" title="Link to this method">
|
225
|
-
<span class="method-name">get_k_n_student_short_list</span>
|
226
|
-
<span class="method-args">(k, n, filter = nil, data_list = nil)</span>
|
227
|
-
</a>
|
228
|
-
</div>
|
229
|
-
</div>
|
230
|
-
|
231
|
-
<div class="method-controls">
|
232
|
-
<details class="method-source-toggle">
|
233
|
-
<summary>Source</summary>
|
234
|
-
</details>
|
235
|
-
</div>
|
236
|
-
|
237
|
-
<div class="method-description">
|
238
|
-
<div class="method-source-code" id="get_k_n_student_short_list-source">
|
239
|
-
<pre><span class="ruby-comment"># File lib/models/students_list/students_list.rb, line 10</span>
|
240
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_k_n_student_short_list</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">n</span>, <span class="ruby-identifier">filter</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">data_list</span> = <span class="ruby-keyword">nil</span>)
|
241
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">adapter</span>.<span class="ruby-identifier">get_k_n_student_short_list</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">n</span>, <span class="ruby-identifier">filter</span>, <span class="ruby-identifier">data_list</span>)
|
242
|
-
<span class="ruby-keyword">end</span></pre>
|
243
|
-
</div>
|
244
|
-
|
245
|
-
</div>
|
246
|
-
|
247
|
-
|
248
|
-
</div>
|
249
|
-
|
250
|
-
<div id="method-i-get_student_by_id" class="method-detail anchor-link ">
|
251
|
-
<div class="method-header">
|
252
|
-
<div class="method-heading">
|
253
|
-
<a href="#method-i-get_student_by_id" title="Link to this method">
|
254
|
-
<span class="method-name">get_student_by_id</span>
|
255
|
-
<span class="method-args">(id)</span>
|
256
|
-
</a>
|
257
|
-
</div>
|
258
|
-
</div>
|
259
|
-
|
260
|
-
<div class="method-controls">
|
261
|
-
<details class="method-source-toggle">
|
262
|
-
<summary>Source</summary>
|
263
|
-
</details>
|
264
|
-
</div>
|
265
|
-
|
266
|
-
<div class="method-description">
|
267
|
-
<div class="method-source-code" id="get_student_by_id-source">
|
268
|
-
<pre><span class="ruby-comment"># File lib/models/students_list/students_list.rb, line 6</span>
|
269
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_student_by_id</span>(<span class="ruby-identifier">id</span>)
|
270
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">adapter</span>.<span class="ruby-identifier">get_student_by_id</span>(<span class="ruby-identifier">id</span>)
|
271
|
-
<span class="ruby-keyword">end</span></pre>
|
272
|
-
</div>
|
273
|
-
|
274
|
-
</div>
|
275
|
-
|
276
|
-
|
277
|
-
</div>
|
278
|
-
|
279
|
-
<div id="method-i-get_student_short_count" class="method-detail anchor-link ">
|
280
|
-
<div class="method-header">
|
281
|
-
<div class="method-heading">
|
282
|
-
<a href="#method-i-get_student_short_count" title="Link to this method">
|
283
|
-
<span class="method-name">get_student_short_count</span>
|
284
|
-
<span class="method-args">(filter = nil)</span>
|
285
|
-
</a>
|
286
|
-
</div>
|
287
|
-
</div>
|
288
|
-
|
289
|
-
<div class="method-controls">
|
290
|
-
<details class="method-source-toggle">
|
291
|
-
<summary>Source</summary>
|
292
|
-
</details>
|
293
|
-
</div>
|
294
|
-
|
295
|
-
<div class="method-description">
|
296
|
-
<div class="method-source-code" id="get_student_short_count-source">
|
297
|
-
<pre><span class="ruby-comment"># File lib/models/students_list/students_list.rb, line 26</span>
|
298
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_student_short_count</span>(<span class="ruby-identifier">filter</span> = <span class="ruby-keyword">nil</span>)
|
299
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">adapter</span>.<span class="ruby-identifier">get_student_short_count</span>(<span class="ruby-identifier">filter</span>)
|
300
|
-
<span class="ruby-keyword">end</span></pre>
|
301
|
-
</div>
|
302
|
-
|
303
|
-
</div>
|
304
|
-
|
305
|
-
|
306
|
-
</div>
|
307
|
-
|
308
|
-
<div id="method-i-replace_student" class="method-detail anchor-link ">
|
309
|
-
<div class="method-header">
|
310
|
-
<div class="method-heading">
|
311
|
-
<a href="#method-i-replace_student" title="Link to this method">
|
312
|
-
<span class="method-name">replace_student</span>
|
313
|
-
<span class="method-args">(id, new_student)</span>
|
314
|
-
</a>
|
315
|
-
</div>
|
316
|
-
</div>
|
317
|
-
|
318
|
-
<div class="method-controls">
|
319
|
-
<details class="method-source-toggle">
|
320
|
-
<summary>Source</summary>
|
321
|
-
</details>
|
322
|
-
</div>
|
323
|
-
|
324
|
-
<div class="method-description">
|
325
|
-
<div class="method-source-code" id="replace_student-source">
|
326
|
-
<pre><span class="ruby-comment"># File lib/models/students_list/students_list.rb, line 18</span>
|
327
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">replace_student</span>(<span class="ruby-identifier">id</span>, <span class="ruby-identifier">new_student</span>)
|
328
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">adapter</span>.<span class="ruby-identifier">replace_student</span>(<span class="ruby-identifier">id</span>, <span class="ruby-identifier">new_student</span>)
|
329
|
-
<span class="ruby-keyword">end</span></pre>
|
330
|
-
</div>
|
331
|
-
|
332
|
-
</div>
|
333
|
-
|
334
|
-
|
335
|
-
</div>
|
336
|
-
|
337
|
-
</section>
|
338
|
-
|
339
|
-
</section>
|
340
|
-
</main>
|
341
|
-
|