class Fog::Network::OpenStack::FloatingIp
Public Class Methods
new(attributes)
click to toggle source
Calls superclass method
Fog::Model::new
# File lib/fog/openstack/models/network/floating_ip.rb, line 20 def initialize(attributes) @connection = attributes[:connection] super end
Public Instance Methods
create()
click to toggle source
# File lib/fog/openstack/models/network/floating_ip.rb, line 30 def create requires :floating_network_id merge_attributes(service.create_floating_ip(self.floating_network_id, self.attributes).body['floatingip']) self end
destroy()
click to toggle source
# File lib/fog/openstack/models/network/floating_ip.rb, line 43 def destroy requires :id service.delete_floating_ip(self.id) true end
save()
click to toggle source
# File lib/fog/openstack/models/network/floating_ip.rb, line 25 def save requires :floating_network_id identity ? update : create end
update()
click to toggle source
# File lib/fog/openstack/models/network/floating_ip.rb, line 39 def update self end