Sha256: 0a96dba64d01a408bc14887ca0ca0952a389c9c699fd7000ad5169cb5d498e37
Contents?: true
Size: 1018 Bytes
Versions: 3
Compression:
Stored size: 1018 Bytes
Contents
require "source/attr_limited_regex_accessor.rb" module RubbishCode class StudentsList attr_private_accessor :students_list_adapter def initialize(adapter) self.students_list_adapter = adapter end def get_student(id) students_list_adapter.get_student(id) end def remove_student(id) students_list_adapter.remove_student(id) end def replace_student(id, student) students_list_adapter.replace_student(id, student) end def get_students(from, to, data) values = students_list_adapter.get_students(from, to) if data == nil data = DataList.new(list: values) else data.list = values end data.list end def add_student(student) students_list_adapter.add_student(student) end def count students_list_adapter.count() end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
Web_rubbish_code-1.0.2 | lib/source/students_list.rb |
Web_rubbish_code-1.0.1 | lib/source/students_list.rb |
Web_rubbish_code-1.0.0 | lib/source/students_list.rb |