class OvirtSDK4::SpecialObjects
Public Class Methods
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`.
OvirtSDK4::Struct::new
# File lib/ovirtsdk4/types.rb, line 19737 def initialize(opts = {}) super(opts) self.blank_template = opts[:blank_template] self.root_tag = opts[:root_tag] end
Public Instance Methods
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 19746 def ==(other) super && @blank_template == other.blank_template && @root_tag == other.root_tag end
Returns the value of the `blank_template` attribute.
@return [Template]
# File lib/ovirtsdk4/types.rb, line 19680 def blank_template @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 19693 def blank_template=(value) if value.is_a?(Hash) value = Template.new(value) end @blank_template = value end
Generates a hash value for this object.
OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 19755 def hash super + @blank_template.hash + @root_tag.hash end
Returns the value of the `root_tag` attribute.
@return [Tag]
# File lib/ovirtsdk4/types.rb, line 19705 def root_tag @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 19718 def root_tag=(value) if value.is_a?(Hash) value = Tag.new(value) end @root_tag = value end