Sha256: 2144c5feca7bb8c1678f06f6043b709a6c1ffdea76d25d5c51e2fb3eca436783

Contents?: true

Size: 343 Bytes

Versions: 1

Compression:

Stored size: 343 Bytes

Contents

# frozen_string_literal: true

# This registrar handles the registration of various notification services.
module DispatchRider
  module Registrars
    class NotificationService < Base
      def value(name, options = {})
        "DispatchRider::NotificationServices::#{name.to_s.camelize}".constantize.new(options)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dispatch-rider-2.2.0 lib/dispatch-rider/registrars/notification_service.rb