Class: OvirtSDK4::SpecialObjects

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (SpecialObjects) initialize(opts = {})

Creates a new instance of the OvirtSDK4::SpecialObjects class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :blank_template (Template, Hash)

    The value of attribute blank_template.

  • :root_tag (Tag, Hash)

    The value of attribute root_tag.



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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:

  • value (Tag, Hash)


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