class OvirtSDK4::Configuration
Public Class Methods
new(opts = {})
click to toggle source
Creates a new instance of the {Configuration} 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 [String] :data The value of attribute `data`.
@option opts [ConfigurationType] :type The value of attribute `type`.
Calls superclass method
OvirtSDK4::Struct::new
# File lib/ovirtsdk4/types.rb, line 2057 def initialize(opts = {}) super(opts) self.data = opts[:data] self.type = opts[:type] end
Public Instance Methods
==(other)
click to toggle source
Returns `true` if `self` and `other` have the same attributes and values.
Calls superclass method
OvirtSDK4::Struct#==
# File lib/ovirtsdk4/types.rb, line 2066 def ==(other) super && @data == other.data && @type == other.type end
data()
click to toggle source
Returns the value of the `data` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 2014 def data @data end
data=(value)
click to toggle source
Sets the value of the `data` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 2023 def data=(value) @data = value end
hash()
click to toggle source
Generates a hash value for this object.
Calls superclass method
OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 2075 def hash super + @data.hash + @type.hash end
type()
click to toggle source
Returns the value of the `type` attribute.
@return [ConfigurationType]
# File lib/ovirtsdk4/types.rb, line 2032 def type @type end
type=(value)
click to toggle source
Sets the value of the `type` attribute.
@param value [ConfigurationType]
# File lib/ovirtsdk4/types.rb, line 2041 def type=(value) @type = value end