Class: PipelineService::Events::Responders::SIS
- Inherits:
-
Object
- Object
- PipelineService::Events::Responders::SIS
- Defined in:
- app/services/pipeline_service/events/responders/sis.rb
Constant Summary collapse
- HEADERS =
{ 'Content-Type' => 'application/json' }
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(object:, message:, args: {}) ⇒ SIS
constructor
A new instance of SIS.
- #perform ⇒ Object
Constructor Details
#initialize(object:, message:, args: {}) ⇒ SIS
Returns a new instance of SIS.
7 8 9 10 11 |
# File 'app/services/pipeline_service/events/responders/sis.rb', line 7 def initialize(object:, message:, args: {}) @message = @args = args configure_dependencies end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'app/services/pipeline_service/events/responders/sis.rb', line 13 def call raise 'Missing config' if missing_config? if PipelineService.perform_synchronously? perform else queue.enqueue(self) end end |
#perform ⇒ Object
23 24 25 26 |
# File 'app/services/pipeline_service/events/responders/sis.rb', line 23 def perform post log end |