Class: Fog::Compute::Libvirt::Network
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::Libvirt::Network
- Includes:
- Fog::Compute::LibvirtUtil
- Defined in:
- lib/fog/libvirt/models/compute/network.rb
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Network
constructor
A new instance of Network.
- #save ⇒ Object
- #shutdown ⇒ Object
Methods included from Fog::Compute::LibvirtUtil
#randomized_name, #to_xml, #xml_element, #xml_elements
Constructor Details
#initialize(attributes = {}) ⇒ Network
Returns a new instance of Network.
15 16 17 |
# File 'lib/fog/libvirt/models/compute/network.rb', line 15 def initialize(attributes = {}) super end |
Instance Method Details
#save ⇒ Object
19 20 21 |
# File 'lib/fog/libvirt/models/compute/network.rb', line 19 def save raise Fog::Errors::Error.new('Creating a new network is not yet implemented. Contributions welcome!') end |
#shutdown ⇒ Object
23 24 25 |
# File 'lib/fog/libvirt/models/compute/network.rb', line 23 def shutdown service.destroy_network(uuid) end |