Skip to content

Instantly share code, notes, and snippets.

@reddavis
Created April 16, 2015 10:58
Show Gist options
  • Save reddavis/a2b8d23c5d29b41f8451 to your computer and use it in GitHub Desktop.
Save reddavis/a2b8d23c5d29b41f8451 to your computer and use it in GitHub Desktop.
@interface TestUser : NSObject <REDModel>
@property (copy, nonatomic) NSString *name;
- (instancetype)initWithIdentifier:(NSString *)identifier;
@end
@interface TestUser ()
@property (copy, nonatomic) NSString *modelIdentifier;
@end
@implementation TestUser
@dynamic name;
- (instancetype)initWithIdentifier:(NSString *)identifier
{
self = [self init];
if (self)
{
self.modelIdentifier = identifier;
}
return self;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment