GHKGist Class Reference
Inherits from | NSObject |
Conforms to | GHKObject |
Declared in | GHKGist.h GHKGist.m |
Tasks
Other Methods
-
isPublic
Is the gist public
property -
isStarred
Is the gist starred
property -
comments
Number of comments
property -
user
The user who wrote the gist
property -
createdAt
Date created at
property -
updatedAt
Date updated at
property -
deletedFiles
Array of deleted GHKGistFile while editing
property -
files
Array of GHKGistFile
property -
gistDescription
Description of gist
property -
gistId
Gist ID
property -
gitPullUrl
Git Pull URL
property -
gitPushUrl
Git Push URL
property -
htmlUrl
HTML URL
property -
url
Single gist API URL
property -
isNew
Is the gist stored on the web
property
Initialization
-
– initEmpty
Initialize new empty gist
File manipulation
-
– addEmptyFile
Creates an empty file and adds to files
-
– createEmptyFile
Creates an empty file without adding
-
– deleteFile:
Delete the file
-
– fileWithFilename:
Find a file by filename
Other Methods
-
– dictionary
JSON 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 *deletedFiles
Declared In
GHKGist.h
files
Array of GHKGistFile
@property (nonatomic, strong) NSMutableArray *files
Declared In
GHKGist.h
gistDescription
Description of gist
@property (nonatomic, strong) NSString *gistDescription
Declared In
GHKGist.h
Instance Methods
addEmptyFile
Creates an empty file and adds to files
- (GHKGistFile *)addEmptyFile
Return Value
the file created
Declared In
GHKGist.h
createEmptyFile
Creates an empty file without adding
- (GHKGistFile *)createEmptyFile
Return Value
the file created
Declared In
GHKGist.h
dictionary
JSON object as a NSDictionary to post to API
- (NSDictionary *)dictionary
Return Value
The NSDictionary
Declared In
GHKObject.h