Class: VimSdk::DataType

Inherits:
BaseType show all
Defined in:
lib/ruby_vim_sdk/data_type.rb

Direct Known Subclasses

ManagedType

Instance Attribute Summary collapse

Attributes inherited from BaseType

#name, #version, #wsdl_name

Instance Method Summary collapse

Constructor Details

#initialize(name, wsdl_name, parent, version, properties) ⇒ DataType

Returns a new instance of DataType.



7
8
9
10
11
# File 'lib/ruby_vim_sdk/data_type.rb', line 7

def initialize(name, wsdl_name, parent, version, properties)
  super(name, wsdl_name, version)
  @parent = VmodlHelper.vmodl_type_to_ruby(parent) if parent
  @properties = properties ? properties.collect { |property| Property.new(*property) } : []
end

Instance Attribute Details

#parentObject

Returns the value of attribute parent.



4
5
6
# File 'lib/ruby_vim_sdk/data_type.rb', line 4

def parent
  @parent
end

#propertiesObject

Returns the value of attribute properties.



5
6
7
# File 'lib/ruby_vim_sdk/data_type.rb', line 5

def properties
  @properties
end