Class: VimSdk::DataType
- Defined in:
- lib/ruby_vim_sdk/data_type.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#properties ⇒ Object
Returns the value of attribute properties.
Attributes inherited from BaseType
Instance Method Summary collapse
-
#initialize(name, wsdl_name, parent, version, properties) ⇒ DataType
constructor
A new instance of DataType.
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
#parent ⇒ Object
Returns the value of attribute parent.
4 5 6 |
# File 'lib/ruby_vim_sdk/data_type.rb', line 4 def parent @parent end |
#properties ⇒ Object
Returns the value of attribute properties.
5 6 7 |
# File 'lib/ruby_vim_sdk/data_type.rb', line 5 def properties @properties end |