2017-07-28 16:50:06 +03:00

29 lines
449 B
Objective-C
Executable File

//
// Created by Tikhonenko Pavel on 30/11/2013.
// Copyright (c) 2013 Coub. All rights reserved.
//
#import "CBTagNew.h"
@implementation CBTagNew
{
}
- (NSString *)hashTag
{
return [@"#" stringByAppendingString:_title];
}
+ (instancetype)tagWithAttributes:(NSDictionary *)attributes
{
CBTagNew *tag = [CBTagNew new];
tag.tagId = attributes[@"id"];
tag.title = attributes[@"title"];
tag.value = attributes[@"value"];
return tag;
}
@end