struct GistPayload
- GistPayload
- Struct
- Value
- Object
Overview
Represents gist creation payload
NOTE Fields which are required to gist creation
#public
Included Modules
- JSON::Serializable
Defined in:
githubcr/payloads/gist.crConstructors
- .new(files : Hash(String, GistPayload::GistFilePayload), description : String | Nil = nil, public : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #clone
- #copy_with(files _files = @files, description _description = @description, public _public = @public)
- #description : String | Nil
- #files : Hash(String, GistPayload::GistFilePayload)
- #public : Bool | Nil
Constructor Detail
def self.new(files : Hash(String, GistPayload::GistFilePayload), description : String | Nil = nil, public : Bool | Nil = nil)
#
Instance Method Detail
def copy_with(files _files = @files, description _description = @description, public _public = @public)
#