Class: Gcloud::Storage::File::List
- Inherits:
-
Array
- Object
- Array
- Gcloud::Storage::File::List
- Defined in:
- lib/gcloud/storage/file/list.rb
Overview
File::List is a special case Array with additional values.
Instance Attribute Summary collapse
-
#prefixes ⇒ Object
The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.
-
#token ⇒ Object
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.
Instance Method Summary collapse
-
#initialize(arr = [], token = nil, prefixes = []) ⇒ List
constructor
Create a new File::List with an array of values.
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
#prefixes ⇒ Object
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 |
#token ⇒ Object
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 |