Replaced type attribute with kind for resource model to comply with ActiveRecord convention.