This pattern link is for a recipe found on the Martha Stewart website. It details how to knit a lined, zippered change purse and how to knit a case for glasses.
For Purse: 8 stitches and 12 rows = 2 inches
For Case: 11 stitches and 15 rows = 2 inches
U.S. size 8 needle
1/4 yard lightweight cotton fabric (lining)
U.S. size 6 needle
The recipe does not list information as to yardage or how many stitches to cast on, but indicates to knit a specific sized rectangle. Number of stitches cast on will be defined by your gauge.