Class: PubsubClient::NullPublisher

Inherits:
Object
  • Object
show all
Defined in:
lib/pubsub_client/null_publisher.rb

Overview

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

Defined Under Namespace

Classes: NullResult

Instance Method Summary collapse

Instance Method Details

#publish {|NullResult.new| ... } ⇒ Object

Yields:



14
15
16
# File 'lib/pubsub_client/null_publisher.rb', line 14

def publish(*, &block)
  yield NullResult.new
end