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 17219 def initialize(opts = {}) super(opts) self.blank_template = opts[:blank_template] self.root_tag = opts[:root_tag] end
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 17228 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 17162 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 17175 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.
# File lib/ovirtsdk4/types.rb, line 17237 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 17187 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 17200 def root_tag=(value) if value.is_a?(Hash) value = Tag.new(value) end @root_tag = value end