Object GitHub::GistFile

A file in a gist.

Fields

encodedName: String

The file name encoded to remove characters that are invalid in URL paths.

encoding: String

The gist file encoding.

extension: String

The file extension from the file name.

isImage: Boolean!

Indicates if this file is an image.

isTruncated: Boolean!

Whether the file's contents were truncated.

language: Language

The programming language this file is written in.

name: String

The gist file name.

size: Int

The gist file size in bytes.

text(truncate: Int): String

UTF8 text data or null if the file is binary

Args

truncate: Int

Optionally truncate the returned file to this length.

Uses

Gist.files