GHKGist Class Reference
| Inherits from | NSObject |
| Conforms to | GHKObject |
| Declared in | GHKGist.h GHKGist.m |
Tasks
Other Methods
-
isPublicIs the gist public
property -
isStarredIs the gist starred
property -
commentsNumber of comments
property -
userThe user who wrote the gist
property -
createdAtDate created at
property -
updatedAtDate updated at
property -
deletedFilesArray of deleted GHKGistFile while editing
property -
filesArray of GHKGistFile
property -
gistDescriptionDescription of gist
property -
gistIdGist ID
property -
gitPullUrlGit Pull URL
property -
gitPushUrlGit Push URL
property -
htmlUrlHTML URL
property -
urlSingle gist API URL
property -
isNewIs the gist stored on the web
property
Initialization
-
– initEmptyInitialize new empty gist
File manipulation
-
– addEmptyFileCreates an empty file and adds to files
-
– createEmptyFileCreates an empty file without adding
-
– deleteFile:Delete the file
-
– fileWithFilename:Find a file by filename
Other Methods
-
– dictionaryJSON object as a NSDictionary to post to API
-
– initWithDictionary:Initialize a new instance from JSON object as a NSDictionary
Properties
deletedFiles
Array of deleted GHKGistFile while editing
@property (nonatomic, strong) NSMutableArray *deletedFilesDeclared In
GHKGist.hfiles
Array of GHKGistFile
@property (nonatomic, strong) NSMutableArray *filesDeclared In
GHKGist.hgistDescription
Description of gist
@property (nonatomic, strong) NSString *gistDescriptionDeclared In
GHKGist.hInstance Methods
addEmptyFile
Creates an empty file and adds to files
- (GHKGistFile *)addEmptyFileReturn Value
the file created
Declared In
GHKGist.hcreateEmptyFile
Creates an empty file without adding
- (GHKGistFile *)createEmptyFileReturn Value
the file created
Declared In
GHKGist.hdictionary
JSON object as a NSDictionary to post to API
- (NSDictionary *)dictionaryReturn Value
The NSDictionary
Declared In
GHKObject.h