Sha256: 74c818269ffe6a9c54f24528c0ec4de88b730a99798e13507f1abf1aec3174f7
Contents?: true
Size: 473 Bytes
Versions: 4
Compression:
Stored size: 473 Bytes
Contents
# frozen_string_literal: true require 'google/cloud/pubsub' module PubSubModelSync class Connector attr_accessor :service delegate :listen_messages, :publish, :stop, to: :service def initialize @service = build_service end private def build_service case Config.service_name when :google PubSubModelSync::ServiceGoogle.new else # :rabbit_mq PubSubModelSync::ServiceRabbit.new end end end end
Version data entries
4 entries across 4 versions & 1 rubygems