Inherits from NSObject
Conforms to GHKObject
Declared in GHKGistFile.h
GHKGistFile.m

Overview

A class describes a file in gist

Tasks

Other Methods

Editing

Other Methods

Properties

backup

Copy of the file before editing

@property (nonatomic, strong) GHKGistFile *backup

Declared In

GHKGistFile.h

content

Content of the file

@property (nonatomic, strong) NSString *content

Declared In

GHKGistFile.h

filename

Filename of the file

@property (nonatomic, strong) NSString *filename

Declared In

GHKGistFile.h

language

Language of the file

@property (nonatomic, strong) NSString *language

Declared In

GHKGistFile.h

rawUrl

Raw file URL

@property (nonatomic, strong) NSURL *rawUrl

Declared In

GHKGistFile.h

size

Size of the file

@property (nonatomic) NSInteger size

Declared In

GHKGistFile.h

Instance Methods

createBackup

Creates a backup

- (GHKGistFile *)createBackup

Return Value

backup created

Declared In

GHKGistFile.h

dictionary

JSON object as a NSDictionary to post to API

- (NSDictionary *)dictionary

Return Value

The NSDictionary

Declared In

GHKObject.h

discardChanges

Discard changes from backup : content, filename

- (void)discardChanges

Declared In

GHKGistFile.h

hasChanges

The file has changes

- (BOOL)hasChanges

Return Value

The file has changes

Declared In

GHKGistFile.h

initWithDictionary:

Initialize a new instance from JSON object as a NSDictionary

- (id)initWithDictionary:(NSDictionary *)dictionary

Declared In

GHKObject.h