struct GistPayload

Overview

Represents gist creation payload

NOTE Fields which are required to gist creation #public

Included Modules

Defined in:

githubcr/payloads/gist.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(files : Hash(String, GistPayload::GistFilePayload), description : String | Nil = nil, public : Bool | Nil = nil) #

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

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(files _files = @files, description _description = @description, public _public = @public) #

[View source]
def description : String | Nil #

def files : Hash(String, GistPayload::GistFilePayload) #

def public : Bool | Nil #