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.

Options Hash (opts):

  • :value (String)

    The value of attribute value.

  • :version (String)

    The value of attribute version.



23290
23291
23292
23293
23294
# File 'lib/ovirtsdk4/types.rb', line 23290

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.



23299
23300
23301
23302
23303
# File 'lib/ovirtsdk4/types.rb', line 23299

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

#hashObject

Generates a hash value for this object.



23308
23309
23310
23311
23312
# File 'lib/ovirtsdk4/types.rb', line 23308

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

#valueString

Returns the value of the value attribute.



23247
23248
23249
# File 'lib/ovirtsdk4/types.rb', line 23247

def value
  @value
end

#value=(value) ⇒ Object

Sets the value of the value attribute.



23256
23257
23258
# File 'lib/ovirtsdk4/types.rb', line 23256

def value=(value)
  @value = value
end

#versionString

Returns the value of the version attribute.



23265
23266
23267
# File 'lib/ovirtsdk4/types.rb', line 23265

def version
  @version
end

#version=(value) ⇒ Object

Sets the value of the version attribute.



23274
23275
23276
# File 'lib/ovirtsdk4/types.rb', line 23274

def version=(value)
  @version = value
end