struct

Google::Drive::V3::FileList

Inherits Enumerable < MessagePack::Serializable < JSON::Serializable < Google::Resource < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)

Instance methods

each

Must yield this collection's elements to the block.

Source
files
first(n : Int32) : Array(File)
Source
first

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
Source
first?

Returns the first element in the collection. When the collection is empty, returns nil.

([1, 2, 3]).first?   # => 1
([] of Int32).first? # => nil
Source
incomplete_search
kind
next_page_token
to_a

Returns an Array with all the elements in the collection.

(1..5).to_a # => [1, 2, 3, 4, 5]
Source