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".