Object initializer from attributes hash