Class: EditStudentController
- Inherits:
-
Object
- Object
- EditStudentController
- Defined in:
- lib/model_gem_source/controllers/edit_student_controller.rb
Instance Attribute Summary collapse
-
#edit_user_id ⇒ Object
readonly
Returns the value of attribute edit_user_id.
-
#onCreate ⇒ Object
Returns the value of attribute onCreate.
-
#ui ⇒ Object
readonly
Returns the value of attribute ui.
Instance Method Summary collapse
-
#initialize(student) ⇒ EditStudentController
constructor
A new instance of EditStudentController.
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_id ⇒ Object (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 |
#onCreate ⇒ Object
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 |
#ui ⇒ Object (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 |