Expose #attributes as public method

Closes #21