Class: Google::Cloud::Pubsub::PublishResult
- Inherits:
-
Object
- Object
- Google::Cloud::Pubsub::PublishResult
- Defined in:
- lib/google/cloud/pubsub/publish_result.rb
Overview
PublishResult
Instance Method Summary collapse
-
#attributes ⇒ Object
The message's attributes.
-
#data ⇒ Object
The message's data.
-
#error ⇒ Object
The error that was raised when published, if any.
-
#failed? ⇒ Boolean
Whether the publish request failed.
-
#message ⇒ Object
(also: #msg)
The message.
-
#message_id ⇒ Object
(also: #msg_id)
The ID of the message, assigned by the server at publication time.
-
#published_at ⇒ Object
(also: #publish_time)
The time at which the message was published.
-
#succeeded? ⇒ Boolean
Whether the publish request was successful.
Instance Method Details
#attributes ⇒ Object
The message's attributes.
45 46 47 |
# File 'lib/google/cloud/pubsub/publish_result.rb', line 45 def attributes .attributes end |
#data ⇒ Object
The message's data.
39 40 41 |
# File 'lib/google/cloud/pubsub/publish_result.rb', line 39 def data .data end |
#error ⇒ Object
The error that was raised when published, if any.
66 67 68 |
# File 'lib/google/cloud/pubsub/publish_result.rb', line 66 def error @error end |
#failed? ⇒ Boolean
Whether the publish request failed.
77 78 79 |
# File 'lib/google/cloud/pubsub/publish_result.rb', line 77 def failed? !succeeded? end |
#message ⇒ Object Also known as: msg
The message.
32 33 34 |
# File 'lib/google/cloud/pubsub/publish_result.rb', line 32 def @message end |
#message_id ⇒ Object Also known as: msg_id
The ID of the message, assigned by the server at publication time. Guaranteed to be unique within the topic.
52 53 54 |
# File 'lib/google/cloud/pubsub/publish_result.rb', line 52 def . end |
#published_at ⇒ Object Also known as: publish_time
The time at which the message was published.
59 60 61 |
# File 'lib/google/cloud/pubsub/publish_result.rb', line 59 def published_at .published_at end |
#succeeded? ⇒ Boolean
Whether the publish request was successful.
72 73 74 |
# File 'lib/google/cloud/pubsub/publish_result.rb', line 72 def succeeded? error.nil? end |