struct GistPayload::GistFilePayload

Overview

Represents a file

NOTE Fields which are required to gist creation #filename

Included Modules

Defined in:

githubcr/payloads/gist.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(content : String, filename : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def clone #

[View source]
def content : String #

def copy_with(content _content = @content, filename _filename = @filename) #

[View source]
def filename : String | Nil #