Methods to get information about attributes

I resisted naming all of these with `attribute_` as a prefix :)