Class: PubsubClient::NullPublisher::NullResult

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



8
9
10
# File 'lib/pubsub_client/null_publisher.rb', line 8

def error
  @error
end

Instance Method Details

#succeeded?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/pubsub_client/null_publisher.rb', line 9

def succeeded?
  true
end