Class: DataListStudentShort

Inherits:
DataList show all
Defined in:
lib/source/Data_list_student_short.rb

Instance Attribute Summary

Attributes inherited from DataList

#objects, #selected_num

Instance Method Summary collapse

Methods inherited from DataList

#add_listener, #append, #data_table, #initialize, #notify, #remove_listener, #replace_objects, #select_element, #selected_id

Constructor Details

This class inherits a constructor from DataList

Instance Method Details

#get_namesObject



8
9
10
# File 'lib/source/Data_list_student_short.rb', line 8

def get_names
	['Фамилия И.О.','Гит','Контакт']
end

#table_fields(obj) ⇒ Object



13
14
15
# File 'lib/source/Data_list_student_short.rb', line 13

def table_fields(obj)
	[obj.fio, obj.git, obj.contact]
end