Class: Gcloud::Storage::Bucket::List

Inherits:
Array
  • Object
show all
Defined in:
lib/gcloud/storage/bucket/list.rb

Overview

Bucket::List is a special case Array with additional values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arr = [], token = nil) ⇒ List

Create a new Bucket::List with an array of values.


32
33
34
35
# File 'lib/gcloud/storage/bucket/list.rb', line 32

def initialize arr = [], token = nil
  super arr
  @token = token
end

Instance Attribute Details

#tokenObject

If not empty, indicates that there are more buckets that match the request and this value should be passed to the next Gcloud::Storage::Project#buckets to continue.


28
29
30
# File 'lib/gcloud/storage/bucket/list.rb', line 28

def token
  @token
end