API GetItemGem

Returns the gem for a socketed equipment item. itemName, itemLink = GetItemGem(item, index)

Arguments

 * item : string - The name of the equipment item (the item must be equipped or in your inventory for this to work) or the ItemLink
 * index : number - The index of the desired gem: 1, 2, or 3

Returns

 * itemName : string - The name of the gem at the specified index.
 * itemLink : string : ItemLink

Details

 * Using the name may be ambiguous if you have more than one of the named item.

Example
Prints the 2nd gem socketed in this item. They were randomly bought from the auction house to test this API.