Class: Gcloud::Storage::File::List

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

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


36
37
38
39
40
# File 'lib/gcloud/storage/file/list.rb', line 36

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

Instance Attribute Details

#prefixesObject

The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.


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

def prefixes
  @prefixes
end

#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::Bucket#files to continue.


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

def token
  @token
end