Parent

Class/Module Index [+]

Quicksearch

Fog::Network::OpenStack::Network

Public Class Methods

new(attributes) click to toggle source
# File lib/fog/openstack/models/network/network.rb, line 24
def initialize(attributes)
  # Old 'connection' is renamed as service and should be used instead
  prepare_service_value(attributes)
  super
end

Public Instance Methods

create() click to toggle source
# File lib/fog/openstack/models/network/network.rb, line 34
def create
  merge_attributes(service.create_network(self.attributes).body['network'])
  self
end
destroy() click to toggle source
# File lib/fog/openstack/models/network/network.rb, line 46
def destroy
  requires :id
  service.delete_network(self.id)
  true
end
save() click to toggle source
# File lib/fog/openstack/models/network/network.rb, line 30
def save
  identity ? update : create
end
update() click to toggle source
# File lib/fog/openstack/models/network/network.rb, line 39
def update
  requires :id
  merge_attributes(service.update_network(self.id,
                                             self.attributes).body['network'])
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.