struct Google::Drive::V3::FileList

Included Modules

Defined in:

drive.cr

Constructors

Instance Method Summary

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

def self.new(pull : JSON::PullParser) #

def self.new(pull : MessagePack::Unpacker) #

Instance Method Detail

def each(&block : File -> ) : Nil #
Description copied from module Enumerable(Google::Drive::V3::File)

Must yield this collection's elements to the block.


[View source]
def files : Array(File) #

def first(n : Int32) : Array(File) #

[View source]
def first : File #
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

[View source]
def first? : File | Nil #
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

[View source]
def incomplete_search : Bool #

def kind : String #

def next_page_token : String | 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]

[View source]