Class: ShnaiderCode::EditStudentController

Inherits:
Object
  • Object
show all
Defined in:
lib/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
# File 'lib/source/controllers/edit_student_controller.rb', line 6

def initialize(student)
    @edit_user_id = student.id
end

Instance Attribute Details

#edit_user_idObject (readonly)

Returns the value of attribute edit_user_id.



4
5
6
# File 'lib/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/source/controllers/edit_student_controller.rb', line 3

def onCreate
  @onCreate
end