| Total Complexity | 2 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | 1 | module Textris |
|
| 4 | 1 | class Worker |
|
| 5 | 1 | include ::Sidekiq::Worker |
|
| 6 | |||
| 7 | 1 | def perform(texter, action, args) |
|
| 8 | 8 | texter = texter.safe_constantize |
|
| 9 | |||
| 10 | 8 | if texter.present? |
|
| 11 | 8 | args = ::Textris::Delay::Sidekiq::Serializer.deserialize(args) |
|
| 12 | |||
| 13 | 8 | texter.new(action, *args).call_action.deliver |
|
| 14 | end |
||
| 15 | end |
||
| 16 | end |
||
| 17 | end |
||
| 20 |