class PubsubClient::NullPublisher

A null object to act as a publisher when clients are in dev or test

Constants

NullResult

This is required so that this publisher maintains the same contract as a real publisher.

Public Instance Methods

publish(*) { |null_result| ... } click to toggle source
# File lib/pubsub_client/null_publisher.rb, line 14
def publish(*, &block)
  yield NullResult.new
end