Skip to content

Commit

Permalink
Fix docs for PubSub::Topic#subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzmo committed Oct 31, 2016
1 parent 5300d1b commit 7a7462c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions google-cloud-pubsub/lib/google/cloud/pubsub/topic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def delete
# start with a letter, and contain only letters ([A-Za-z]), numbers
# ([0-9], dashes (-), underscores (_), periods (.), tildes (~), plus
# (+) or percent signs (%). It must be between 3 and 255 characters in
# length, and it must not start with "goog".
# length, and it must not start with "goog". Required.
# @param [Integer] deadline The maximum number of seconds after a
# subscriber receives a message before the subscriber should
# acknowledge the message.
Expand All @@ -114,15 +114,6 @@ def delete
# sub = topic.subscribe "my-topic-sub"
# puts sub.name # => "my-topic-sub"
#
# @example The name is optional, and will be generated if not given:
# require "google/cloud/pubsub"
#
# pubsub = Google::Cloud::Pubsub.new
#
# topic = pubsub.topic "my-topic"
# sub = topic.subscribe "my-topic-sub"
# puts sub.name # => "generated-sub-name"
#
# @example Wait 2 minutes for acknowledgement and push all to endpoint:
# require "google/cloud/pubsub"
#
Expand Down

0 comments on commit 7a7462c

Please sign in to comment.