Class: OvirtSDK4::SpecialObjects
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::SpecialObjects
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Template) blank_template
Returns the value of the
blank_template
attribute. -
- (Object) blank_template=(value)
Sets the value of the
blank_template
attribute. -
- (SpecialObjects) initialize(opts = {})
constructor
Creates a new instance of the SpecialObjects class.
-
- (Tag) root_tag
Returns the value of the
root_tag
attribute. -
- (Object) root_tag=(value)
Sets the value of the
root_tag
attribute.
Methods included from Type
Constructor Details
- (SpecialObjects) initialize(opts = {})
Creates a new instance of the OvirtSDK4::SpecialObjects class.
14064 14065 14066 14067 14068 |
# File 'lib/ovirtsdk4/types.rb', line 14064 def initialize(opts = {}) super(opts) self.blank_template = opts[:blank_template] self.root_tag = opts[:root_tag] end |
Instance Method Details
- (Template) blank_template
Returns the value of the blank_template
attribute.
14007 14008 14009 |
# File 'lib/ovirtsdk4/types.rb', line 14007 def blank_template return @blank_template end |
- (Object) blank_template=(value)
Sets the value of the blank_template
attribute.
The value
parameter can be an instance of Template or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
14020 14021 14022 14023 14024 14025 |
# File 'lib/ovirtsdk4/types.rb', line 14020 def blank_template=(value) if value.is_a?(Hash) value = Template.new(value) end @blank_template = value end |
- (Tag) root_tag
Returns the value of the root_tag
attribute.
14032 14033 14034 |
# File 'lib/ovirtsdk4/types.rb', line 14032 def root_tag return @root_tag end |
- (Object) root_tag=(value)
Sets the value of the root_tag
attribute.
The value
parameter can be an instance of Tag or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
14045 14046 14047 14048 14049 14050 |
# File 'lib/ovirtsdk4/types.rb', line 14045 def root_tag=(value) if value.is_a?(Hash) value = Tag.new(value) end @root_tag = value end |