From 996981024233108a388980cc9e5b910dd2702f43 Mon Sep 17 00:00:00 2001 From: Darren Ehlers Date: Sat, 17 May 2014 16:17:48 -0500 Subject: [PATCH] Added FoundryPropertyTypeStateCode type Signed-off-by: Darren Ehlers --- Classes/NSObject+Foundry.m | 3 +++ Classes/TGFoundryObject.h | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/Classes/NSObject+Foundry.m b/Classes/NSObject+Foundry.m index 6a02dc8..3605828 100644 --- a/Classes/NSObject+Foundry.m +++ b/Classes/NSObject+Foundry.m @@ -81,6 +81,9 @@ + (NSDictionary *)foundryAttributes case FoundryPropertyTypeState: [attributesDict setObject:[GZLocations city] forKey:key]; break; + case FoundryPropertyTypeStateCode: + [attributesDict setObject:[GZLocations stateCode] forKey:key]; + break; case FoundryPropertyTypeZipCode: [attributesDict setObject:[GZLocations zipCode] forKey:key]; break; diff --git a/Classes/TGFoundryObject.h b/Classes/TGFoundryObject.h index 7560dd6..0a20b94 100644 --- a/Classes/TGFoundryObject.h +++ b/Classes/TGFoundryObject.h @@ -66,6 +66,13 @@ typedef NS_ENUM(NSUInteger, FoundryPropertyType) { */ FoundryPropertyTypeState, + /** + + * Property represents a state. Will return the two-character code for one of the valid US 50 states. + + */ + FoundryPropertyTypeStateCode, + /** * Property represents a zip code, will be assigned a zip code string with the format "xxxxx" or "xxxxx-xxxx".