Class: Mumuki::Classroom::Event::UserChanged

Inherits:
Object
  • Object
show all
Defined in:
lib/mumuki/classroom/event/user_changed.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.changesObject

Returns the value of attribute changes.



4
5
6
# File 'lib/mumuki/classroom/event/user_changed.rb', line 4

def changes
  @changes
end

Class Method Details

.execute!(user_h) ⇒ Object



6
7
8
9
# File 'lib/mumuki/classroom/event/user_changed.rb', line 6

def execute!(user_h)
  set_permissions_diff user_h
  update_user_model user_h
end