Maybe define a method on instance call `hostname` that will return it's public or private hostname, depending on the value of `use_private_ip`.