class Virt::Interface

Attributes

device[RW]
mac[RW]
model[RW]
network[RW]
type[RW]

Public Class Methods

new(options = {}) click to toggle source
# 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

Public Instance Methods

new?() click to toggle source
# File lib/virt/interface.rb, line 14
def new?
  mac.nil?
end

Protected Instance Methods

default_device() click to toggle source

Abstracted methods

# File lib/virt/interface.rb, line 21
def default_device; end
default_model() click to toggle source
# File lib/virt/interface.rb, line 25
def default_model; end
default_type() click to toggle source
# File lib/virt/interface.rb, line 23
def default_type; end