Class: Assistant::TechnicalSupport::CaseEventStream::EventBuilder::RoomConfigurationSerializer
- Inherits:
-
Base
- Object
- Base
- Assistant::TechnicalSupport::CaseEventStream::EventBuilder::RoomConfigurationSerializer
- Defined in:
- app/services/assistant/technical_support/case_event_stream/event_builder/room_configuration_serializer.rb
Constant Summary collapse
- SOURCE_TYPE =
'RoomConfiguration'
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Assistant::TechnicalSupport::CaseEventStream::EventBuilder::Base
Instance Method Details
#call(room) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/services/assistant/technical_support/case_event_stream/event_builder/room_configuration_serializer.rb', line 6 def call(room) record_source(SOURCE_TYPE) raw_event = event( room, key_prefix: "room-configuration-#{room.id}", source_type: SOURCE_TYPE, occurred_at: value_for(room, :created_at) || value_for(support_case, :created_at), kind: 'product_context', actor_role: 'system', text: room_text(room) ) include_source(SOURCE_TYPE) raw_event end |