Returns a new instance of Nic.
Raises:
23 24 25 26
# File 'lib/fog/libvirt/models/compute/nic.rb', line 23 def initialize attributes super defaults.merge(attributes) raise Fog::Errors::Error.new("#{type} is not a supported nic type") if new? && !TYPES.include?(type) end