Class: Fog::Compute::Libvirt::Network

Inherits:
Model
  • Object
show all
Includes:
Fog::Compute::LibvirtUtil
Defined in:
lib/fog/libvirt/models/compute/network.rb

Instance Attribute Summary

Attributes inherited from Model

#collection, #connection

Instance Method Summary collapse

Methods included from Fog::Compute::LibvirtUtil

#document

Methods inherited from Model

#inspect, #reload, #to_json, #wait_for

Methods included from Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one

Constructor Details

#initialize(attributes = {}) ⇒ Network



26
27
28
# File 'lib/fog/libvirt/models/compute/network.rb', line 26

def initialize(attributes = {})
  super
end

Instance Method Details

#destroyObject



34
35
36
37
38
# File 'lib/fog/libvirt/models/compute/network.rb', line 34

def destroy()
  requires :raw
  raw.destroy
  true
end

#saveObject

Raises:



30
31
32
# File 'lib/fog/libvirt/models/compute/network.rb', line 30

def save
  raise Fog::Errors::Error.new('Creating a new network is not yet implemented. Contributions welcome!')
end