Updated

lib/context_request_middleware / push_handler.rb

A
21 lines of codes
2 methods
4.3 complexity/method
3 churn
8.6 complexity
0 duplications
# frozen_string_literal: true require 'context_request_middleware/push_handler/rabbitmq_push_handler' require 'context_request_middleware/push_handler/rabbitmq_push_handler_async' module ContextRequestMiddleware # :nodoc: module PushHandler
  1. ContextRequestMiddleware::PushHandler has no descriptive comment
  2. ContextRequestMiddleware::PushHandler has initialize method
extend self def initialize(**_config); end def from_middleware
  1. ContextRequestMiddleware::PushHandler#from_middleware doesn't depend on instance state (maybe move it to another class?)
ContextRequestMiddleware
  1. ContextRequestMiddleware::PushHandler#from_middleware performs a nil-check
.load_class_from_name(ContextRequestMiddleware.push_handler, ContextRequestMiddleware::PushHandler.to_s, ContextRequestMiddleware.push_handler_version) &.new(**ContextRequestMiddleware.push_handler_config) end end end