Method: Fog::Compute::Libvirt::Nic#initialize

Defined in:
lib/fog/libvirt/models/compute/nic.rb

#initialize(attributes) ⇒ Nic

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