Creates a new instance of the {SpecialObjects} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [Template, Hash] :blank_template The value of attribute `blank_template`.
@option opts [Tag, Hash] :root_tag The value of attribute `root_tag`.
# File lib/ovirtsdk4/types.rb, line 14433 def initialize(opts = {}) super(opts) self.blank_template = opts[:blank_template] self.root_tag = opts[:root_tag] end
Returns the value of the `blank_template` attribute.
@return [Template]
# File lib/ovirtsdk4/types.rb, line 14376 def blank_template return @blank_template end
Sets the value of the `blank_template` attribute.
@param value [Template, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 14389 def blank_template=(value) if value.is_a?(Hash) value = Template.new(value) end @blank_template = value end
Returns the value of the `root_tag` attribute.
@return [Tag]
# File lib/ovirtsdk4/types.rb, line 14401 def root_tag return @root_tag end
Sets the value of the `root_tag` attribute.
@param value [Tag, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 14414 def root_tag=(value) if value.is_a?(Hash) value = Tag.new(value) end @root_tag = value end