Class: Civo::Instance
- Defined in:
- app/models/civo/instance.rb
Instance Method Summary collapse
Instance Method Details
#nice_ip_addresses ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'app/models/civo/instance.rb', line 18 def nice_ip_addresses @ip_addresses ||= (self._attributes[:ip_addresses].items rescue []).map do |ip| if ip.public_ip "#{ip.private_ip}=>#{ip.public_ip}" else "#{ip.private_ip}" end end.join(", ") end |