Class: TwoPercent::Domain::Events::GroupUpdated

Inherits:
BaseEvent
  • Object
show all
Defined in:
lib/two_percent/domain/events/group_events.rb

Overview

Domain event: Group was updated

Instance Method Summary collapse

Instance Method Details

#apply_to_model(model_class) ⇒ Object

Apply this event to a domain model class



35
36
37
# File 'lib/two_percent/domain/events/group_events.rb', line 35

def apply_to_model(model_class)
  model_class.syncable_model.sync_updated(group_attributes, model_class)
end

#group_idObject



30
31
32
# File 'lib/two_percent/domain/events/group_events.rb', line 30

def group_id
  group_attributes[:scim_id]
end