Allow configuration via hash as well as attributes