Sha256: fbc339f1d4f7f6f98d518d2085adc862d7263eb2d2cee7e3da5e8081f25e95ea

Contents?: true

Size: 677 Bytes

Versions: 3

Compression:

Stored size: 677 Bytes

Contents

require 'source/data_list.rb'
require 'source/data_table.rb'

module ShnaiderCode
    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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shnaider_code-2.0.4 lib/source/data_list_student_short.rb
shnaider_code-2.0.3 lib/source/data_list_student_short.rb
shnaider_code-2.0.2 lib/source/data_list_student_short.rb