One of Abu Dhabi's ritziest hotels is guessing its customers want more than chocolate or candy during their stay. So it now has a vending machine that will let its guests buy gold.

The Emirates Palace hotel unveiled the hi-tech vending machine Wednesday.

Abu Dhabi Hotel Boasts Gold Vending Machine

Customers can insert cash and, in return, get gold bars weighing up to 10 grams or gold coins featuring a customized design.

Abu Dhabi Hotel Boasts Gold Vending Machine

The machine's inventor, German entrepreneur Thomas Geissler, says it will update its gold prices every 10 seconds so customers can always get the correct price.

Abu Dhabi Hotel Boasts Gold Vending Machine

Geissler says he brought the machine to Abu Dhabi because of the Gulf emirate's reputation and because of its stable economy.

He also says the machine will be updated so that it can take credit cards.