Class: Assistant::TechnicalSupport::CaseEventStream::EventBuilder::RmaSerializer
- Inherits:
-
Base
- Object
- Base
- Assistant::TechnicalSupport::CaseEventStream::EventBuilder::RmaSerializer
- Defined in:
- app/services/assistant/technical_support/case_event_stream/event_builder/rma_serializer.rb
Constant Summary collapse
- SOURCE_TYPE =
'Rma'
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(rma) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/services/assistant/technical_support/case_event_stream/event_builder/rma_serializer.rb', line 6 def call(rma) record_source(SOURCE_TYPE) raw_event = event( rma, key_prefix: "rma-#{rma.id}", source_type: SOURCE_TYPE, occurred_at: value_for(rma, :created_at) || value_for(support_case, :created_at), kind: 'rma', actor_role: 'system', status: value_for(rma, :state), text: rma_text(rma) ) include_source(SOURCE_TYPE) raw_event end |