student_mvp 0.1.8 → 0.1.10

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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/doc/App_logger.html +47 -33
  3. data/doc/DB_client.html +20 -10
  4. data/doc/created.rid +10 -44
  5. data/doc/index.html +2 -81
  6. data/doc/js/search_index.js +1 -1
  7. data/doc/js/search_index.js.gz +0 -0
  8. data/doc/table_of_contents.html +9 -697
  9. data/lib/data_access/DB_client/DB_client.rb +20 -1
  10. data/lib/logger/logger.rb +35 -0
  11. data/lib/presenters/base_presenters/student_list_presenter.rb +1 -1
  12. data/lib/student_mvp/version.rb +1 -1
  13. metadata +56 -35
  14. data/doc/Binary_tree.html +0 -300
  15. data/doc/Binary_tree_iterator.html +0 -217
  16. data/doc/Contact_sort_decorator.html +0 -219
  17. data/doc/Data_list.html +0 -625
  18. data/doc/Data_list_student_short.html +0 -148
  19. data/doc/Data_storage_strategy.html +0 -178
  20. data/doc/Data_table.html +0 -264
  21. data/doc/Deep_dup.html +0 -152
  22. data/doc/Field_filter_decorator.html +0 -219
  23. data/doc/Filter.html +0 -148
  24. data/doc/Filter_decorator.html +0 -209
  25. data/doc/Full_name_filter_decorator.html +0 -211
  26. data/doc/Full_name_sort_decorator.html +0 -217
  27. data/doc/Gemfile.html +0 -98
  28. data/doc/Git_sort_decorator.html +0 -220
  29. data/doc/Has_not_field_filter_decorator.html +0 -209
  30. data/doc/JSON_storage_strategy.html +0 -183
  31. data/doc/Person.html +0 -511
  32. data/doc/README_md.html +0 -147
  33. data/doc/Rakefile.html +0 -94
  34. data/doc/Sort_decorator.html +0 -214
  35. data/doc/Student.html +0 -755
  36. data/doc/StudentMvp/Error.html +0 -105
  37. data/doc/StudentMvp.html +0 -111
  38. data/doc/Student_short.html +0 -398
  39. data/doc/Students_list.html +0 -341
  40. data/doc/Students_list_DB.html +0 -361
  41. data/doc/Students_list_file.html +0 -460
  42. data/doc/Students_list_file_adapter.html +0 -341
  43. data/doc/Students_list_interface.html +0 -298
  44. data/doc/YAML_storage_strategy.html +0 -183
  45. data/doc/bin/setup.html +0 -96
@@ -1,217 +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 Binary_tree_iterator - RDoc Documentation</title>
9
-
10
- <meta name="keywords" content="ruby,class,Binary_tree_iterator">
11
-
12
- <meta name="description" content="Documentation for the Binary_tree_iterator 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">&#9776;</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
- <div id="includes-section" class="nav-section">
75
- <h3>Included Modules</h3>
76
-
77
- <ul class="link-list">
78
- <li><span class="include">Enumerable</span>
79
- </ul>
80
- </div>
81
-
82
-
83
-
84
- <div class="nav-section">
85
- <h3>Class Methods</h3>
86
- <ul class="link-list" role="directory">
87
- <li ><a href="#method-c-new">new</a></li>
88
- </ul>
89
- </div>
90
-
91
-
92
-
93
- <div class="nav-section">
94
- <h3>Instance Methods</h3>
95
- <ul class="link-list" role="directory">
96
- <li ><a href="#method-i-each">each</a></li>
97
- </ul>
98
- </div>
99
-
100
-
101
-
102
- <footer id="validator-badges" role="contentinfo">
103
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
104
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
105
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
106
- </footer>
107
-
108
- </nav>
109
-
110
- <main role="main" aria-labelledby="class-Binary_tree_iterator">
111
- <h1 id="class-Binary_tree_iterator" class="anchor-link class">
112
- class Binary_tree_iterator
113
- </h1>
114
-
115
- <section class="description">
116
-
117
- </section>
118
-
119
- <section id="5Buntitled-5D" class="documentation-section anchor-link">
120
-
121
-
122
-
123
- <section class="attribute-method-details" class="method-section">
124
- <header>
125
- <h3>Attributes</h3>
126
- </header>
127
-
128
- <div id="attribute-i-root" class="method-detail anchor-link">
129
- <div class="method-heading attribute-method-heading">
130
- <a href="#attribute-i-root" title="Link to this attribute">
131
- <span class="method-name">root</span>
132
- <span class="attribute-access-type">[RW]</span>
133
- </a>
134
- </div>
135
-
136
- <div class="method-description">
137
-
138
- </div>
139
- </div>
140
- </section>
141
-
142
-
143
- <section id="public-class-5Buntitled-5D-method-details" class="method-section anchor-link">
144
- <header>
145
- <h3>Public Class Methods</h3>
146
- </header>
147
-
148
- <div id="method-c-new" class="method-detail anchor-link ">
149
- <div class="method-header">
150
- <div class="method-heading">
151
- <a href="#method-c-new" title="Link to this method">
152
- <span class="method-name">new</span>
153
- <span class="method-args">(root)</span>
154
- </a>
155
- </div>
156
- </div>
157
-
158
- <div class="method-controls">
159
- <details class="method-source-toggle">
160
- <summary>Source</summary>
161
- </details>
162
- </div>
163
-
164
- <div class="method-description">
165
- <div class="method-source-code" id="new-source">
166
- <pre><span class="ruby-comment"># File lib/models/binary_tree/binary_tree_iterator.rb, line 6</span>
167
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">root</span>)
168
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">root</span> = <span class="ruby-identifier">root</span>
169
- <span class="ruby-keyword">end</span></pre>
170
- </div>
171
-
172
- </div>
173
-
174
-
175
- </div>
176
-
177
- </section>
178
-
179
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
180
- <header>
181
- <h3>Public Instance Methods</h3>
182
- </header>
183
-
184
- <div id="method-i-each" class="method-detail anchor-link ">
185
- <div class="method-header">
186
- <div class="method-heading">
187
- <a href="#method-i-each" title="Link to this method">
188
- <span class="method-name">each</span>
189
- <span class="method-args">(&amp;block)</span>
190
- </a>
191
- </div>
192
- </div>
193
-
194
- <div class="method-controls">
195
- <details class="method-source-toggle">
196
- <summary>Source</summary>
197
- </details>
198
- </div>
199
-
200
- <div class="method-description">
201
- <div class="method-source-code" id="each-source">
202
- <pre><span class="ruby-comment"># File lib/models/binary_tree/binary_tree_iterator.rb, line 10</span>
203
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">each</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
204
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">enumerator</span>.<span class="ruby-identifier">each</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
205
- <span class="ruby-keyword">end</span></pre>
206
- </div>
207
-
208
- </div>
209
-
210
-
211
- </div>
212
-
213
- </section>
214
-
215
- </section>
216
- </main>
217
-
@@ -1,219 +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 Contact_sort_decorator - RDoc Documentation</title>
9
-
10
- <meta name="keywords" content="ruby,class,Contact_sort_decorator">
11
-
12
- <meta name="description" content="Documentation for the Contact_sort_decorator 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">&#9776;</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><a href="Filter_decorator.html">Filter_decorator</a><ul><li><a href="Filter.html">Filter</a><ul><li>Object</li></ul></li></ul></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 class="calls-super" ><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 class="calls-super" ><a href="#method-i-apply">apply</a></li>
89
- </ul>
90
- </div>
91
-
92
-
93
-
94
- <footer id="validator-badges" role="contentinfo">
95
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
96
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
97
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
98
- </footer>
99
-
100
- </nav>
101
-
102
- <main role="main" aria-labelledby="class-Contact_sort_decorator">
103
- <h1 id="class-Contact_sort_decorator" class="anchor-link class">
104
- class Contact_sort_decorator
105
- </h1>
106
-
107
- <section class="description">
108
-
109
- </section>
110
-
111
- <section id="5Buntitled-5D" class="documentation-section anchor-link">
112
-
113
-
114
-
115
-
116
-
117
- <section id="public-class-5Buntitled-5D-method-details" class="method-section anchor-link">
118
- <header>
119
- <h3>Public Class Methods</h3>
120
- </header>
121
-
122
- <div id="method-c-new" class="method-detail anchor-link ">
123
- <div class="method-header">
124
- <div class="method-heading">
125
- <a href="#method-c-new" title="Link to this method">
126
- <span class="method-name">new</span>
127
- <span class="method-args">(filter, order)</span>
128
- </a>
129
- </div>
130
- </div>
131
-
132
- <div class="method-controls">
133
- <details class="method-source-toggle">
134
- <summary>Source</summary>
135
- </details>
136
- </div>
137
-
138
- <div class="method-description">
139
- <div class="method-source-code" id="new-source">
140
- <pre><span class="ruby-comment"># File lib/models/filter/student_filters/contact_sort_decorator.rb, line 4</span>
141
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">filter</span>, <span class="ruby-identifier">order</span>)
142
- <span class="ruby-keyword">super</span>(<span class="ruby-identifier">filter</span>)
143
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">order</span> = <span class="ruby-identifier">order</span>
144
- <span class="ruby-keyword">end</span></pre>
145
- </div>
146
-
147
- <div class="method-calls-super">
148
- Calls superclass method
149
- <a href="Filter_decorator.html#method-c-new"><code>Filter_decorator::new</code></a>
150
- </div>
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-apply" class="method-detail anchor-link ">
164
- <div class="method-header">
165
- <div class="method-heading">
166
- <a href="#method-i-apply" title="Link to this method">
167
- <span class="method-name">apply</span>
168
- <span class="method-args">(filtering_obj)</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="apply-source">
181
- <pre><span class="ruby-comment"># File lib/models/filter/student_filters/contact_sort_decorator.rb, line 9</span>
182
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">apply</span>(<span class="ruby-identifier">filtering_obj</span>)
183
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">filtering_obj</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
184
- <span class="ruby-identifier">filtered_students</span> = <span class="ruby-keyword">super</span>(<span class="ruby-identifier">filtering_obj</span>)
185
- <span class="ruby-keyword">return</span> [] <span class="ruby-keyword">if</span> <span class="ruby-identifier">filtered_students</span>.<span class="ruby-identifier">nil?</span>
186
-
187
- <span class="ruby-identifier">sorted_students</span> = <span class="ruby-identifier">filtered_students</span>.<span class="ruby-identifier">sort_by</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">student</span><span class="ruby-operator">|</span>
188
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">get_priority</span>(<span class="ruby-identifier">student</span>)
189
- <span class="ruby-keyword">end</span>
190
- <span class="ruby-identifier">sorted_students</span>.<span class="ruby-identifier">reverse!</span> <span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">order</span> <span class="ruby-operator">==</span> <span class="ruby-value">:desc</span>
191
- <span class="ruby-identifier">sorted_students</span>
192
- <span class="ruby-keyword">else</span>
193
- <span class="ruby-identifier">query</span> = <span class="ruby-keyword">super</span>(<span class="ruby-identifier">filtering_obj</span>)
194
- <span class="ruby-node">&quot;#{query} ORDER BY
195
- CASE
196
- WHEN telegram IS NOT NULL AND telegram != &#39;&#39; THEN 1
197
- WHEN email IS NOT NULL AND email != &#39;&#39; THEN 2
198
- WHEN phone_number IS NOT NULL AND phone_number != &#39;&#39; THEN 3
199
- ELSE 4
200
- END #{self.order_clause}
201
- &quot;</span>
202
- <span class="ruby-keyword">end</span>
203
- <span class="ruby-keyword">end</span></pre>
204
- </div>
205
-
206
- <div class="method-calls-super">
207
- Calls superclass method
208
- <a href="Filter_decorator.html#method-i-apply"><code>Filter_decorator#apply</code></a>
209
- </div>
210
- </div>
211
-
212
-
213
- </div>
214
-
215
- </section>
216
-
217
- </section>
218
- </main>
219
-