student_mvp 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.
Files changed (127) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +35 -0
  3. data/Rakefile +4 -0
  4. data/doc/Add_student_presenter.html +238 -0
  5. data/doc/App_logger.html +386 -0
  6. data/doc/Base_presenter.html +265 -0
  7. data/doc/Binary_tree.html +300 -0
  8. data/doc/Binary_tree_iterator.html +217 -0
  9. data/doc/Contact_sort_decorator.html +219 -0
  10. data/doc/DB_client.html +252 -0
  11. data/doc/Data_list.html +625 -0
  12. data/doc/Data_list_student_short.html +148 -0
  13. data/doc/Data_storage_strategy.html +178 -0
  14. data/doc/Data_table.html +264 -0
  15. data/doc/Deep_dup.html +152 -0
  16. data/doc/Edit_contacts_presenter.html +199 -0
  17. data/doc/Edit_git_presenter.html +192 -0
  18. data/doc/Edit_student_presenter.html +464 -0
  19. data/doc/Field_filter_decorator.html +219 -0
  20. data/doc/Filter.html +148 -0
  21. data/doc/Filter_decorator.html +209 -0
  22. data/doc/Full_name_filter_decorator.html +211 -0
  23. data/doc/Full_name_sort_decorator.html +217 -0
  24. data/doc/Gemfile.html +98 -0
  25. data/doc/Git_sort_decorator.html +220 -0
  26. data/doc/Has_not_field_filter_decorator.html +209 -0
  27. data/doc/JSON_storage_strategy.html +183 -0
  28. data/doc/Person.html +511 -0
  29. data/doc/README_md.html +147 -0
  30. data/doc/Rakefile.html +94 -0
  31. data/doc/Replace_student_presenter.html +204 -0
  32. data/doc/Sort_decorator.html +214 -0
  33. data/doc/Student.html +755 -0
  34. data/doc/StudentMvp/Error.html +105 -0
  35. data/doc/StudentMvp.html +111 -0
  36. data/doc/Student_list_presenter.html +667 -0
  37. data/doc/Student_short.html +398 -0
  38. data/doc/Students_list.html +341 -0
  39. data/doc/Students_list_DB.html +361 -0
  40. data/doc/Students_list_file.html +460 -0
  41. data/doc/Students_list_file_adapter.html +341 -0
  42. data/doc/Students_list_interface.html +298 -0
  43. data/doc/YAML_storage_strategy.html +183 -0
  44. data/doc/bin/setup.html +96 -0
  45. data/doc/created.rid +44 -0
  46. data/doc/css/fonts.css +167 -0
  47. data/doc/css/rdoc.css +662 -0
  48. data/doc/fonts/Lato-Light.ttf +0 -0
  49. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  50. data/doc/fonts/Lato-Regular.ttf +0 -0
  51. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  52. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  53. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  54. data/doc/images/add.png +0 -0
  55. data/doc/images/arrow_up.png +0 -0
  56. data/doc/images/brick.png +0 -0
  57. data/doc/images/brick_link.png +0 -0
  58. data/doc/images/bug.png +0 -0
  59. data/doc/images/bullet_black.png +0 -0
  60. data/doc/images/bullet_toggle_minus.png +0 -0
  61. data/doc/images/bullet_toggle_plus.png +0 -0
  62. data/doc/images/date.png +0 -0
  63. data/doc/images/delete.png +0 -0
  64. data/doc/images/find.png +0 -0
  65. data/doc/images/loadingAnimation.gif +0 -0
  66. data/doc/images/macFFBgHack.png +0 -0
  67. data/doc/images/package.png +0 -0
  68. data/doc/images/page_green.png +0 -0
  69. data/doc/images/page_white_text.png +0 -0
  70. data/doc/images/page_white_width.png +0 -0
  71. data/doc/images/plugin.png +0 -0
  72. data/doc/images/ruby.png +0 -0
  73. data/doc/images/tag_blue.png +0 -0
  74. data/doc/images/tag_green.png +0 -0
  75. data/doc/images/transparent.png +0 -0
  76. data/doc/images/wrench.png +0 -0
  77. data/doc/images/wrench_orange.png +0 -0
  78. data/doc/images/zoom.png +0 -0
  79. data/doc/index.html +174 -0
  80. data/doc/js/darkfish.js +114 -0
  81. data/doc/js/navigation.js +105 -0
  82. data/doc/js/navigation.js.gz +0 -0
  83. data/doc/js/search.js +110 -0
  84. data/doc/js/search_index.js +1 -0
  85. data/doc/js/search_index.js.gz +0 -0
  86. data/doc/js/searcher.js +229 -0
  87. data/doc/js/searcher.js.gz +0 -0
  88. data/doc/table_of_contents.html +1047 -0
  89. data/lib/data_access/DB_client/DB_client.rb +26 -0
  90. data/lib/deep_dup/deep_dup.rb +14 -0
  91. data/lib/logger/logger.rb +64 -0
  92. data/lib/models/binary_tree/binary_tree.rb +163 -0
  93. data/lib/models/binary_tree/binary_tree_iterator.rb +36 -0
  94. data/lib/models/data_list/data_list.rb +97 -0
  95. data/lib/models/data_list/data_list_student_short.rb +16 -0
  96. data/lib/models/data_storage_strategy/JSON_storage_strategy.rb +20 -0
  97. data/lib/models/data_storage_strategy/YAML_storage_strategy.rb +20 -0
  98. data/lib/models/data_storage_strategy/data_storage_strategy.rb +11 -0
  99. data/lib/models/data_table/data_table.rb +52 -0
  100. data/lib/models/filter/filter.rb +5 -0
  101. data/lib/models/filter/filter_decorator.rb +14 -0
  102. data/lib/models/filter/sort_decorator.rb +15 -0
  103. data/lib/models/filter/student_filters/contact_sort_decorator.rb +50 -0
  104. data/lib/models/filter/student_filters/field_filter_decorator.rb +34 -0
  105. data/lib/models/filter/student_filters/full_name_filter_decorator.rb +26 -0
  106. data/lib/models/filter/student_filters/full_name_sort_decorator.rb +32 -0
  107. data/lib/models/filter/student_filters/git_sort_decorator.rb +35 -0
  108. data/lib/models/filter/student_filters/has_not_field_filter_decorator.rb +24 -0
  109. data/lib/models/person/person.rb +72 -0
  110. data/lib/models/student/student.rb +204 -0
  111. data/lib/models/student_short/student_short.rb +98 -0
  112. data/lib/models/students_list/students_list.rb +32 -0
  113. data/lib/models/students_list/students_list_DB.rb +95 -0
  114. data/lib/models/students_list/students_list_file.rb +134 -0
  115. data/lib/models/students_list/students_list_file_adapter.rb +45 -0
  116. data/lib/models/students_list/students_list_interface.rb +25 -0
  117. data/lib/presenters/base_presenters/base_presenter.rb +26 -0
  118. data/lib/presenters/base_presenters/student_list_presenter.rb +273 -0
  119. data/lib/presenters/edit_student/add_student_presenter.rb +46 -0
  120. data/lib/presenters/edit_student/edit_contacts_presenter.rb +36 -0
  121. data/lib/presenters/edit_student/edit_git_presenter.rb +28 -0
  122. data/lib/presenters/edit_student/edit_student_presenter.rb +109 -0
  123. data/lib/presenters/edit_student/replace_student_presenter.rb +37 -0
  124. data/lib/student_mvp/version.rb +5 -0
  125. data/lib/student_mvp.rb +8 -0
  126. data/sig/student_mvp.rbs +4 -0
  127. metadata +253 -0
@@ -0,0 +1,386 @@
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 App_logger - RDoc Documentation</title>
9
+
10
+ <meta name="keywords" content="ruby,class,App_logger">
11
+
12
+ <meta name="description" content="Documentation for the App_logger 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
+
75
+
76
+ <div class="nav-section">
77
+ <h3>Class Methods</h3>
78
+ <ul class="link-list" role="directory">
79
+ <li ><a href="#method-c-instance">instance</a></li>
80
+ <li ><a href="#method-c-new">new</a></li>
81
+ </ul>
82
+ </div>
83
+
84
+
85
+
86
+ <div class="nav-section">
87
+ <h3>Instance Methods</h3>
88
+ <ul class="link-list" role="directory">
89
+ <li ><a href="#method-i-debug">debug</a></li>
90
+ <li ><a href="#method-i-error">error</a></li>
91
+ <li ><a href="#method-i-fatal">fatal</a></li>
92
+ <li ><a href="#method-i-info">info</a></li>
93
+ <li ><a href="#method-i-log">log</a></li>
94
+ <li ><a href="#method-i-warn">warn</a></li>
95
+ </ul>
96
+ </div>
97
+
98
+
99
+
100
+ <footer id="validator-badges" role="contentinfo">
101
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
102
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
103
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
104
+ </footer>
105
+
106
+ </nav>
107
+
108
+ <main role="main" aria-labelledby="class-App_logger">
109
+ <h1 id="class-App_logger" class="anchor-link class">
110
+ class App_logger
111
+ </h1>
112
+
113
+ <section class="description">
114
+
115
+ </section>
116
+
117
+ <section id="5Buntitled-5D" class="documentation-section anchor-link">
118
+
119
+
120
+ <section class="constants-list">
121
+ <header>
122
+ <h3>Constants</h3>
123
+ </header>
124
+ <dl>
125
+ <dt id="LOG_FILE_PATH">LOG_FILE_PATH
126
+ <dd>
127
+
128
+ </dl>
129
+ </section>
130
+
131
+
132
+
133
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section anchor-link">
134
+ <header>
135
+ <h3>Public Class Methods</h3>
136
+ </header>
137
+
138
+ <div id="method-c-instance" class="method-detail anchor-link ">
139
+ <div class="method-header">
140
+ <div class="method-heading">
141
+ <a href="#method-c-instance" title="Link to this method">
142
+ <span class="method-name">instance</span>
143
+ <span class="method-args">()</span>
144
+ </a>
145
+ </div>
146
+ </div>
147
+
148
+ <div class="method-controls">
149
+ <details class="method-source-toggle">
150
+ <summary>Source</summary>
151
+ </details>
152
+ </div>
153
+
154
+ <div class="method-description">
155
+ <div class="method-source-code" id="instance-source">
156
+ <pre><span class="ruby-comment"># File lib/logger/logger.rb, line 16</span>
157
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">instance</span>
158
+ <span class="ruby-ivar">@instance</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">new</span>
159
+ <span class="ruby-keyword">end</span></pre>
160
+ </div>
161
+
162
+ </div>
163
+
164
+
165
+ </div>
166
+
167
+ <div id="method-c-new" class="method-detail anchor-link ">
168
+ <div class="method-header">
169
+ <div class="method-heading">
170
+ <a href="#method-c-new" title="Link to this method">
171
+ <span class="method-name">new</span>
172
+ <span class="method-args">()</span>
173
+ </a>
174
+ </div>
175
+ </div>
176
+
177
+ <div class="method-controls">
178
+ <details class="method-source-toggle">
179
+ <summary>Source</summary>
180
+ </details>
181
+ </div>
182
+
183
+ <div class="method-description">
184
+ <div class="method-source-code" id="new-source">
185
+ <pre><span class="ruby-comment"># File lib/logger/logger.rb, line 7</span>
186
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>
187
+ <span class="ruby-identifier">ensure_log_directory</span>
188
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">logger</span> = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">LOG_FILE_PATH</span>)
189
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">formatter</span> = <span class="ruby-identifier">proc</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">severity</span>, <span class="ruby-identifier">datetime</span>, <span class="ruby-identifier">progname</span>, <span class="ruby-identifier">msg</span><span class="ruby-operator">|</span>
190
+ <span class="ruby-node">&quot;[#{datetime}] #{severity}: #{msg}\n&quot;</span>
191
+ <span class="ruby-keyword">end</span>
192
+ <span class="ruby-identifier">setup_log_level</span>
193
+ <span class="ruby-keyword">end</span></pre>
194
+ </div>
195
+
196
+ </div>
197
+
198
+
199
+ </div>
200
+
201
+ </section>
202
+
203
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
204
+ <header>
205
+ <h3>Public Instance Methods</h3>
206
+ </header>
207
+
208
+ <div id="method-i-debug" class="method-detail anchor-link ">
209
+ <div class="method-header">
210
+ <div class="method-heading">
211
+ <a href="#method-i-debug" title="Link to this method">
212
+ <span class="method-name">debug</span>
213
+ <span class="method-args">(message)</span>
214
+ </a>
215
+ </div>
216
+ </div>
217
+
218
+ <div class="method-controls">
219
+ <details class="method-source-toggle">
220
+ <summary>Source</summary>
221
+ </details>
222
+ </div>
223
+
224
+ <div class="method-description">
225
+ <div class="method-source-code" id="debug-source">
226
+ <pre><span class="ruby-comment"># File lib/logger/logger.rb, line 28</span>
227
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">debug</span>(<span class="ruby-identifier">message</span>)
228
+ <span class="ruby-identifier">log</span>(<span class="ruby-value">:debug</span>, <span class="ruby-identifier">message</span>)
229
+ <span class="ruby-keyword">end</span></pre>
230
+ </div>
231
+
232
+ </div>
233
+
234
+
235
+ </div>
236
+
237
+ <div id="method-i-error" class="method-detail anchor-link ">
238
+ <div class="method-header">
239
+ <div class="method-heading">
240
+ <a href="#method-i-error" title="Link to this method">
241
+ <span class="method-name">error</span>
242
+ <span class="method-args">(message)</span>
243
+ </a>
244
+ </div>
245
+ </div>
246
+
247
+ <div class="method-controls">
248
+ <details class="method-source-toggle">
249
+ <summary>Source</summary>
250
+ </details>
251
+ </div>
252
+
253
+ <div class="method-description">
254
+ <div class="method-source-code" id="error-source">
255
+ <pre><span class="ruby-comment"># File lib/logger/logger.rb, line 32</span>
256
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">error</span>(<span class="ruby-identifier">message</span>)
257
+ <span class="ruby-identifier">log</span>(<span class="ruby-value">:error</span>, <span class="ruby-identifier">message</span>)
258
+ <span class="ruby-keyword">end</span></pre>
259
+ </div>
260
+
261
+ </div>
262
+
263
+
264
+ </div>
265
+
266
+ <div id="method-i-fatal" class="method-detail anchor-link ">
267
+ <div class="method-header">
268
+ <div class="method-heading">
269
+ <a href="#method-i-fatal" title="Link to this method">
270
+ <span class="method-name">fatal</span>
271
+ <span class="method-args">(message)</span>
272
+ </a>
273
+ </div>
274
+ </div>
275
+
276
+ <div class="method-controls">
277
+ <details class="method-source-toggle">
278
+ <summary>Source</summary>
279
+ </details>
280
+ </div>
281
+
282
+ <div class="method-description">
283
+ <div class="method-source-code" id="fatal-source">
284
+ <pre><span class="ruby-comment"># File lib/logger/logger.rb, line 40</span>
285
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fatal</span>(<span class="ruby-identifier">message</span>)
286
+ <span class="ruby-identifier">log</span>(<span class="ruby-value">:fatal</span>, <span class="ruby-identifier">message</span>)
287
+ <span class="ruby-keyword">end</span></pre>
288
+ </div>
289
+
290
+ </div>
291
+
292
+
293
+ </div>
294
+
295
+ <div id="method-i-info" class="method-detail anchor-link ">
296
+ <div class="method-header">
297
+ <div class="method-heading">
298
+ <a href="#method-i-info" title="Link to this method">
299
+ <span class="method-name">info</span>
300
+ <span class="method-args">(message)</span>
301
+ </a>
302
+ </div>
303
+ </div>
304
+
305
+ <div class="method-controls">
306
+ <details class="method-source-toggle">
307
+ <summary>Source</summary>
308
+ </details>
309
+ </div>
310
+
311
+ <div class="method-description">
312
+ <div class="method-source-code" id="info-source">
313
+ <pre><span class="ruby-comment"># File lib/logger/logger.rb, line 24</span>
314
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">info</span>(<span class="ruby-identifier">message</span>)
315
+ <span class="ruby-identifier">log</span>(<span class="ruby-value">:info</span>, <span class="ruby-identifier">message</span>)
316
+ <span class="ruby-keyword">end</span></pre>
317
+ </div>
318
+
319
+ </div>
320
+
321
+
322
+ </div>
323
+
324
+ <div id="method-i-log" class="method-detail anchor-link ">
325
+ <div class="method-header">
326
+ <div class="method-heading">
327
+ <a href="#method-i-log" title="Link to this method">
328
+ <span class="method-name">log</span>
329
+ <span class="method-args">(severity, message)</span>
330
+ </a>
331
+ </div>
332
+ </div>
333
+
334
+ <div class="method-controls">
335
+ <details class="method-source-toggle">
336
+ <summary>Source</summary>
337
+ </details>
338
+ </div>
339
+
340
+ <div class="method-description">
341
+ <div class="method-source-code" id="log-source">
342
+ <pre><span class="ruby-comment"># File lib/logger/logger.rb, line 20</span>
343
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">log</span>(<span class="ruby-identifier">severity</span>, <span class="ruby-identifier">message</span>)
344
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">severity</span>, <span class="ruby-identifier">message</span>)
345
+ <span class="ruby-keyword">end</span></pre>
346
+ </div>
347
+
348
+ </div>
349
+
350
+
351
+ </div>
352
+
353
+ <div id="method-i-warn" class="method-detail anchor-link ">
354
+ <div class="method-header">
355
+ <div class="method-heading">
356
+ <a href="#method-i-warn" title="Link to this method">
357
+ <span class="method-name">warn</span>
358
+ <span class="method-args">(message)</span>
359
+ </a>
360
+ </div>
361
+ </div>
362
+
363
+ <div class="method-controls">
364
+ <details class="method-source-toggle">
365
+ <summary>Source</summary>
366
+ </details>
367
+ </div>
368
+
369
+ <div class="method-description">
370
+ <div class="method-source-code" id="warn-source">
371
+ <pre><span class="ruby-comment"># File lib/logger/logger.rb, line 36</span>
372
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">warn</span>(<span class="ruby-identifier">message</span>)
373
+ <span class="ruby-identifier">log</span>(<span class="ruby-value">:warn</span>, <span class="ruby-identifier">message</span>)
374
+ <span class="ruby-keyword">end</span></pre>
375
+ </div>
376
+
377
+ </div>
378
+
379
+
380
+ </div>
381
+
382
+ </section>
383
+
384
+ </section>
385
+ </main>
386
+
@@ -0,0 +1,265 @@
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 Base_presenter - RDoc Documentation</title>
9
+
10
+ <meta name="keywords" content="ruby,class,Base_presenter">
11
+
12
+ <meta name="description" content="class Base_presenter: Base_presenter Базовый класс для презентеров.">
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
+
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
+
86
+
87
+ <footer id="validator-badges" role="contentinfo">
88
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
89
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
90
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
91
+ </footer>
92
+
93
+ </nav>
94
+
95
+ <main role="main" aria-labelledby="class-Base_presenter">
96
+ <h1 id="class-Base_presenter" class="anchor-link class">
97
+ class Base_presenter
98
+ </h1>
99
+
100
+ <section class="description">
101
+
102
+ <h2 id="class-Base_presenter-label-Base_presenter"><a href="Base_presenter.html"><code>Base_presenter</code></a><span><a href="#class-Base_presenter-label-Base_presenter">&para;</a> <a href="#top">&uarr;</a></span></h2>
103
+
104
+ <p>Базовый класс для презентеров. Управляет основными атрибутами и логикой взаимодействия между представлениями и данными.</p>
105
+
106
+ </section>
107
+
108
+ <section id="5Buntitled-5D" class="documentation-section anchor-link">
109
+
110
+
111
+
112
+ <section class="attribute-method-details" class="method-section">
113
+ <header>
114
+ <h3>Attributes</h3>
115
+ </header>
116
+
117
+ <div id="attribute-i-data_list" class="method-detail anchor-link">
118
+ <div class="method-heading attribute-method-heading">
119
+ <a href="#attribute-i-data_list" title="Link to this attribute">
120
+ <span class="method-name">data_list</span>
121
+ <span class="attribute-access-type">[RW]</span>
122
+ </a>
123
+ </div>
124
+
125
+ <div class="method-description">
126
+ <p>@!attribute [rw] view</p>
127
+
128
+ <pre>@return [Base_view_interface] Объект представления.</pre>
129
+
130
+ <p>@!attribute [rw] <a href="Base_presenter.html#attribute-i-entities_list"><code>entities_list</code></a></p>
131
+
132
+ <pre>@return [Students_list, nil] Список сущностей.</pre>
133
+
134
+ <p>@!attribute [rw] <a href="Base_presenter.html#attribute-i-data_list"><code>data_list</code></a></p>
135
+
136
+ <pre>@return [Data_list, nil] Список данных.</pre>
137
+
138
+ <p>@!attribute [rw] logger</p>
139
+
140
+ <pre>@return [App_logger] Логгер для записи событий.</pre>
141
+ </div>
142
+ </div>
143
+ <div id="attribute-i-entities_list" class="method-detail anchor-link">
144
+ <div class="method-heading attribute-method-heading">
145
+ <a href="#attribute-i-entities_list" title="Link to this attribute">
146
+ <span class="method-name">entities_list</span>
147
+ <span class="attribute-access-type">[RW]</span>
148
+ </a>
149
+ </div>
150
+
151
+ <div class="method-description">
152
+ <p>@!attribute [rw] view</p>
153
+
154
+ <pre>@return [Base_view_interface] Объект представления.</pre>
155
+
156
+ <p>@!attribute [rw] <a href="Base_presenter.html#attribute-i-entities_list"><code>entities_list</code></a></p>
157
+
158
+ <pre>@return [Students_list, nil] Список сущностей.</pre>
159
+
160
+ <p>@!attribute [rw] <a href="Base_presenter.html#attribute-i-data_list"><code>data_list</code></a></p>
161
+
162
+ <pre>@return [Data_list, nil] Список данных.</pre>
163
+
164
+ <p>@!attribute [rw] logger</p>
165
+
166
+ <pre>@return [App_logger] Логгер для записи событий.</pre>
167
+ </div>
168
+ </div>
169
+ <div id="attribute-i-logger" class="method-detail anchor-link">
170
+ <div class="method-heading attribute-method-heading">
171
+ <a href="#attribute-i-logger" title="Link to this attribute">
172
+ <span class="method-name">logger</span>
173
+ <span class="attribute-access-type">[RW]</span>
174
+ </a>
175
+ </div>
176
+
177
+ <div class="method-description">
178
+ <p>@!attribute [rw] view</p>
179
+
180
+ <pre>@return [Base_view_interface] Объект представления.</pre>
181
+
182
+ <p>@!attribute [rw] <a href="Base_presenter.html#attribute-i-entities_list"><code>entities_list</code></a></p>
183
+
184
+ <pre>@return [Students_list, nil] Список сущностей.</pre>
185
+
186
+ <p>@!attribute [rw] <a href="Base_presenter.html#attribute-i-data_list"><code>data_list</code></a></p>
187
+
188
+ <pre>@return [Data_list, nil] Список данных.</pre>
189
+
190
+ <p>@!attribute [rw] logger</p>
191
+
192
+ <pre>@return [App_logger] Логгер для записи событий.</pre>
193
+ </div>
194
+ </div>
195
+ <div id="attribute-i-view" class="method-detail anchor-link">
196
+ <div class="method-heading attribute-method-heading">
197
+ <a href="#attribute-i-view" title="Link to this attribute">
198
+ <span class="method-name">view</span>
199
+ <span class="attribute-access-type">[RW]</span>
200
+ </a>
201
+ </div>
202
+
203
+ <div class="method-description">
204
+ <p>@!attribute [rw] view</p>
205
+
206
+ <pre>@return [Base_view_interface] Объект представления.</pre>
207
+
208
+ <p>@!attribute [rw] <a href="Base_presenter.html#attribute-i-entities_list"><code>entities_list</code></a></p>
209
+
210
+ <pre>@return [Students_list, nil] Список сущностей.</pre>
211
+
212
+ <p>@!attribute [rw] <a href="Base_presenter.html#attribute-i-data_list"><code>data_list</code></a></p>
213
+
214
+ <pre>@return [Data_list, nil] Список данных.</pre>
215
+
216
+ <p>@!attribute [rw] logger</p>
217
+
218
+ <pre>@return [App_logger] Логгер для записи событий.</pre>
219
+ </div>
220
+ </div>
221
+ </section>
222
+
223
+
224
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section anchor-link">
225
+ <header>
226
+ <h3>Public Class Methods</h3>
227
+ </header>
228
+
229
+ <div id="method-c-new" class="method-detail anchor-link ">
230
+ <div class="method-header">
231
+ <div class="method-heading">
232
+ <a href="#method-c-new" title="Link to this method">
233
+ <span class="method-name">new</span>
234
+ <span class="method-args">(view)</span>
235
+ </a>
236
+ </div>
237
+ </div>
238
+
239
+ <div class="method-controls">
240
+ <details class="method-source-toggle">
241
+ <summary>Source</summary>
242
+ </details>
243
+ </div>
244
+
245
+ <div class="method-description">
246
+ <div class="method-source-code" id="new-source">
247
+ <pre><span class="ruby-comment"># File lib/presenters/base_presenters/base_presenter.rb, line 10</span>
248
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">view</span>)
249
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">view</span> = <span class="ruby-identifier">view</span>
250
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">logger</span> = <span class="ruby-constant">App_logger</span>.<span class="ruby-identifier">instance</span>
251
+ <span class="ruby-keyword">end</span></pre>
252
+ </div>
253
+ <p>Инициализация базового презентера.</p>
254
+
255
+ <p>@param view [Base_view_interface] Объект представления, с которым работает презентер.</p>
256
+ </div>
257
+
258
+
259
+ </div>
260
+
261
+ </section>
262
+
263
+ </section>
264
+ </main>
265
+