class OvirtSDK4::SpecialObjects

Public Class Methods

new(opts = {}) click to toggle source

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`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 13685
def initialize(opts = {})
  super(opts)
  self.blank_template = opts[:blank_template]
  self.root_tag = opts[:root_tag]
end

Public Instance Methods

blank_template() click to toggle source

Returns the value of the `blank_template` attribute.

@return [Template]

# File lib/ovirtsdk4/types.rb, line 13628
def blank_template
  return @blank_template
end
blank_template=(value) click to toggle source

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 13641
def blank_template=(value)
  if value.is_a?(Hash)
    value = Template.new(value)
  end
  @blank_template = value
end
root_tag() click to toggle source

Returns the value of the `root_tag` attribute.

@return [Tag]

# File lib/ovirtsdk4/types.rb, line 13653
def root_tag
  return @root_tag
end
root_tag=(value) click to toggle source

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 13666
def root_tag=(value)
  if value.is_a?(Hash)
    value = Tag.new(value)
  end
  @root_tag = value
end