CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✓ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Mar 2015 |
Maintained by Elvis Nuñez.
#import "NSString+HYPRelationshipParser.h"
#import "HYPParsedRelationship.h"
- (HYPParsedRelationship *)hyp_parseRelationship;HYPParsedRelationship *parsedRelationship = [@"name" hyp_parseRelationship];
/*
parsedRelationship.attribute => @"name"
*/
HYPParsedRelationship *parsedRelationship = [@"company.name" hyp_parseRelationship];
/*
parsedRelationship.relationship => @"company",
parsedRelationship.to_many => NO,
parsedRelationship.attribute => "name"
*/
HYPParsedRelationship *parsedRelationship = [@"employees[0].email" hyp_parseRelationship];
/*
parsedRelationship.relationship => @"employees",
parsedRelationship.index => 0,
parsedRelationship.to_many => YES,
parsedRelationship.attribute => @"email"
*/NSString-HYPRelationshipParser is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'NSString-HYPRelationshipParser'
Hyper Interaktiv AS, [email protected]
NSString-HYPRelationshipParser is available under the MIT license. See the LICENSE file for more info.