provide `#as_enum` method for representations
Merge pull request #27 from pezra/as_enum

Provide `#as_enum` method on respresentations