class Fog::Compute::Vsphere::Interface

Public Class Methods

new(attributes={} ) click to toggle source
Calls superclass method Fog::Model.new
# File lib/fog/vsphere/models/compute/interface.rb, line 17
def initialize(attributes={} )
  super defaults.merge(attributes)
end

Public Instance Methods

to_s() click to toggle source
# File lib/fog/vsphere/models/compute/interface.rb, line 21
def to_s
  name
end

Private Instance Methods

defaults() click to toggle source
# File lib/fog/vsphere/models/compute/interface.rb, line 27
def defaults
  {
    :name=>"Network adapter",
    :network=>"VM Network",
    :summary=>"VM Network",
    :type=> RbVmomi::VIM::VirtualE1000,
  }
end