Skip to content

Instantly share code, notes, and snippets.

@reddavis
Created March 22, 2015 17:36
Show Gist options
  • Save reddavis/213fc35097c3d0544a06 to your computer and use it in GitHub Desktop.
Save reddavis/213fc35097c3d0544a06 to your computer and use it in GitHub Desktop.
#import "REDModel.h"
@interface TestUser : NSObject <REDModel>
@property (copy, nonatomic) NSString *name;
- (instancetype)initWithIdentifier:(NSString *)identifier;
@end
#import "TestUser.h"
@interface TestUser ()
@property (copy, nonatomic) NSString *REDModelIdentifier;
@end
@implementation TestUser
@dynamic name;
- (instancetype)initWithIdentifier:(NSString *)identifier
{
self = [self init];
if (self)
{
self.REDModelIdentifier = identifier;
}
return self;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment