lib/source/repositories/student_repository.rb in shnaider_code-1.1.5 vs lib/source/repositories/student_repository.rb in shnaider_code-1.1.6
- old
+ new
@@ -1,21 +1,16 @@
# frozen_string_literal: true
-##
-# Репозиторий студентов с CRUD операциями.
-
class StudentRepository
def initialize(data_source_adapter)
@data_source_adapter = data_source_adapter
end
def student_by_id(student_id)
@data_source_adapter.student_by_id(student_id)
end
- ##
# Получить page по счету count элементов (страница начинается с 1)
-
def paginated_short_students(page, count, existing_data_list = nil)
@data_source_adapter.paginated_short_students(page, count, existing_data_list)
end
def add_student(student)