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.



22066
22067
22068
22069
22070
# File 'lib/ovirtsdk4/types.rb', line 22066

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.



22075
22076
22077
22078
22079
# File 'lib/ovirtsdk4/types.rb', line 22075

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

#hashObject

Generates a hash value for this object.



22084
22085
22086
22087
22088
# File 'lib/ovirtsdk4/types.rb', line 22084

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

#valueString

Returns the value of the value attribute.

Returns:

  • (String)


22023
22024
22025
# File 'lib/ovirtsdk4/types.rb', line 22023

def value
  @value
end

#value=(value) ⇒ Object

Sets the value of the value attribute.

Parameters:

  • value (String)


22032
22033
22034
# File 'lib/ovirtsdk4/types.rb', line 22032

def value=(value)
  @value = value
end

#versionString

Returns the value of the version attribute.

Returns:

  • (String)


22041
22042
22043
# File 'lib/ovirtsdk4/types.rb', line 22041

def version
  @version
end

#version=(value) ⇒ Object

Sets the value of the version attribute.

Parameters:

  • value (String)


22050
22051
22052
# File 'lib/ovirtsdk4/types.rb', line 22050

def version=(value)
  @version = value
end