Class: DropletKit::Droplet

Inherits:
BaseModel show all
Defined in:
lib/droplet_kit/models/droplet.rb

Constant Summary

Constants inherited from BaseModel

BaseModel::DO_NAMESPACE, BaseModel::UNSUPPORTED_COLLECTIONS

Instance Method Summary collapse

Methods inherited from BaseModel

#collection_name, from_identifier, from_urn, #identifier, #inspect, #urn, valid_urn?

Instance Method Details

#private_ipObject


27
28
29
30
# File 'lib/droplet_kit/models/droplet.rb', line 27

def private_ip
  network = network_for(:v4, 'private')
  network && network.ip_address
end

#public_ipObject


22
23
24
25
# File 'lib/droplet_kit/models/droplet.rb', line 22

def public_ip
  network = network_for(:v4, 'public')
  network && network.ip_address
end