struct Google::Drive::V3::FileList
- Google::Drive::V3::FileList
- Struct
- Value
- Object
Included Modules
- Enumerable(Google::Drive::V3::File)
- Google::Resource
- JSON::Serializable
- MessagePack::Serializable
Defined in:
drive.crConstructors
Instance Method Summary
-
#each(&block : File -> ) : Nil
Must yield this collection's elements to the block.
- #files : Array(File)
- #first(n : Int32) : Array(File)
-
#first : File
Returns the first element in the collection.
-
#first? : File | Nil
Returns the first element in the collection.
- #incomplete_search : Bool
- #kind : String
- #next_page_token : String | Nil
-
#to_a
Returns an
Array
with all the elements in the collection.
Macros inherited from module Google::Resource
define(name, *fields)
define,
field(var, key = nil, **options, &block)
field,
field!(var, key = nil, **options, &block)
field!,
field?(var, key = nil, **options, &block)
field?
Constructor Detail
Instance Method Detail
Description copied from module Enumerable(Google::Drive::V3::File)
Must yield this collection's elements to the block.
Description copied from module Enumerable(Google::Drive::V3::File)
Returns the first element in the collection. Raises Enumerable::EmptyError
if the collection is empty.
([1, 2, 3]).first # => 1
([] of Int32).first # raises Enumerable::EmptyError
Description copied from module Enumerable(Google::Drive::V3::File)
Returns the first element in the collection.
When the collection is empty, returns nil
.
([1, 2, 3]).first? # => 1
([] of Int32).first? # => nil
def to_a
#
Description copied from module Enumerable(Google::Drive::V3::File)
Returns an Array
with all the elements in the collection.
(1..5).to_a # => [1, 2, 3, 4, 5]