Defined methods to get the value of enums from the class Ex:
User.role.admin #=> 2