Class: VimString

Inherits:
String
  • Object
show all
Includes:
VimType
Defined in:
lib/VMwareWebService/VimTypes.rb

Instance Method Summary collapse

Methods included from VimType

#vimBaseType, #vimType, #vimType=, #xsiType, #xsiType=

Constructor Details

#initialize(val = "", vimType = nil, xsiType = nil) {|_self| ... } ⇒ VimString

vimType and xsiType arg positions are switched here because most strings are MORs, and this makes it easier to set the vimType of the MOR.

Yields:

  • (_self)

Yield Parameters:

  • _self (VimString)

    the object that the method was called on



81
82
83
84
85
86
# File 'lib/VMwareWebService/VimTypes.rb', line 81

def initialize(val = "", vimType = nil, xsiType = nil)
  self.xsiType = xsiType
  self.vimType = vimType
  super(val)
  yield(self) if block_given?
end