Class: Gcloud::Pubsub::Topic::List
- Inherits:
-
Array
- Object
- Array
- Gcloud::Pubsub::Topic::List
- Defined in:
- lib/gcloud/pubsub/topic/list.rb
Overview
Topic::List is a special case Array with additional values.
Instance Attribute Summary collapse
-
#token ⇒ Object
If not empty, indicates that there are more topics that match the request and this value should be passed to the next Project#topics to continue.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arr = [], token = nil) ⇒ List
constructor
Create a new Topic::List with an array of values.
Constructor Details
#initialize(arr = [], token = nil) ⇒ List
Create a new Topic::List with an array of values.
32 33 34 35 36 |
# File 'lib/gcloud/pubsub/topic/list.rb', line 32 def initialize arr = [], token = nil super arr @token = token @token = nil if @token == "" end |
Instance Attribute Details
#token ⇒ Object
If not empty, indicates that there are more topics that match the request and this value should be passed to the next Project#topics to continue.
28 29 30 |
# File 'lib/gcloud/pubsub/topic/list.rb', line 28 def token @token end |