Class: TwoPercent::Domain::Events::GroupCreated

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

Overview

Domain event: Group was created

Instance Method Summary collapse

Instance Method Details

#apply_to_model(model_class) ⇒ Object

Apply this event to a domain model class



18
19
20
# File 'lib/two_percent/domain/events/group_events.rb', line 18

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

#group_idObject



13
14
15
# File 'lib/two_percent/domain/events/group_events.rb', line 13

def group_id
  group_attributes[:scim_id]
end