Class: OvirtSDK4::SystemOptionValue

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

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ SystemOptionValue

Creates a new instance of the OvirtSDK4::SystemOptionValue 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):

  • :value (String)

    The value of attribute value.

  • :version (String)

    The value of attribute version.



22267
22268
22269
22270
22271
# File 'lib/ovirtsdk4/types.rb', line 22267

def initialize(opts = {})
  super(opts)
  self.value = opts[:value]
  self.version = opts[:version]
end

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.



22276
22277
22278
22279
22280
# File 'lib/ovirtsdk4/types.rb', line 22276

def ==(other)
  super &&
  @value == other.value &&
  @version == other.version
end

#hashObject

Generates a hash value for this object.



22285
22286
22287
22288
22289
# File 'lib/ovirtsdk4/types.rb', line 22285

def hash
  super +
  @value.hash +
  @version.hash
end

#valueString

Returns the value of the value attribute.

Returns:

  • (String)


22224
22225
22226
# File 'lib/ovirtsdk4/types.rb', line 22224

def value
  @value
end

#value=(value) ⇒ Object

Sets the value of the value attribute.

Parameters:

  • value (String)


22233
22234
22235
# File 'lib/ovirtsdk4/types.rb', line 22233

def value=(value)
  @value = value
end

#versionString

Returns the value of the version attribute.

Returns:

  • (String)


22242
22243
22244
# File 'lib/ovirtsdk4/types.rb', line 22242

def version
  @version
end

#version=(value) ⇒ Object

Sets the value of the version attribute.

Parameters:

  • value (String)


22251
22252
22253
# File 'lib/ovirtsdk4/types.rb', line 22251

def version=(value)
  @version = value
end