# File lib/virt/interface.rb, line 5 def initialize options = {} @connection = Virt.connection @device = options[:device] || default_device @type = options[:type] || default_type @model = options[:model] || default_model @mac = options[:mac] @network = options[:network] end
# File lib/virt/interface.rb, line 14 def new? mac.nil? end
Abstracted methods
# File lib/virt/interface.rb, line 21 def default_device; end
# File lib/virt/interface.rb, line 25 def default_model; end
# File lib/virt/interface.rb, line 23 def default_type; end