Framework model initializing attributes from a hash