Class: EditStudentController

Inherits:
Object
  • Object
show all
Defined in:
lib/model_gem_source/controllers/edit_student_controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(student) ⇒ EditStudentController

Returns a new instance of EditStudentController.



6
7
8
9
10
# File 'lib/model_gem_source/controllers/edit_student_controller.rb', line 6

def initialize(student)
    @edit_user_id = student.id
    @ui = CreateStudentView.new(self, student)
    @ui.set_editing_mode()
end

Instance Attribute Details

#edit_user_idObject (readonly)

Returns the value of attribute edit_user_id.



4
5
6
# File 'lib/model_gem_source/controllers/edit_student_controller.rb', line 4

def edit_user_id
  @edit_user_id
end

#onCreateObject

Returns the value of attribute onCreate.



3
4
5
# File 'lib/model_gem_source/controllers/edit_student_controller.rb', line 3

def onCreate
  @onCreate
end

#uiObject (readonly)

Returns the value of attribute ui.



2
3
4
# File 'lib/model_gem_source/controllers/edit_student_controller.rb', line 2

def ui
  @ui
end