It's 1 ruby/energy but the price is capped at 100 rubies, so waiting for the end is the smart move as you'll get more energy back with 100 rubies.
Maybe buying refill during the event is worth it to increase your cap faster if you cant log in too often and for the night. But I don't know if that's the case and I really don't want to do the maths.