Sha256: 4e96e02a13bc70547c10ab374afb2d28aa5f2396add4c03e06c1bfb05982ef08
Contents?: true
Size: 593 Bytes
Versions: 9
Compression:
Stored size: 593 Bytes
Contents
require_relative './data_list.rb' require_relative './data_table.rb' class DataListStudentShort < DataList attr_private_accessor :data_constructor def initialize(list:, data_constructor:) self.data_constructor = data_constructor super(list: list) end def get_names ["ID", "Фамилия", "Имя", "Отчество", "Гит", "Телега", "Телефон", "Почта"] end def get_data self.data_constructor.execute(list, get_names) end def list=(new_list) @list = new_list notify() end end
Version data entries
9 entries across 9 versions & 2 rubygems