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.



21942
21943
21944
21945
21946
# File 'lib/ovirtsdk4/types.rb', line 21942

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.



21951
21952
21953
21954
21955
# File 'lib/ovirtsdk4/types.rb', line 21951

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

#hashObject

Generates a hash value for this object.



21960
21961
21962
21963
21964
# File 'lib/ovirtsdk4/types.rb', line 21960

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

#valueString

Returns the value of the value attribute.

Returns:

  • (String)


21899
21900
21901
# File 'lib/ovirtsdk4/types.rb', line 21899

def value
  @value
end

#value=(value) ⇒ Object

Sets the value of the value attribute.

Parameters:

  • value (String)


21908
21909
21910
# File 'lib/ovirtsdk4/types.rb', line 21908

def value=(value)
  @value = value
end

#versionString

Returns the value of the version attribute.

Returns:

  • (String)


21917
21918
21919
# File 'lib/ovirtsdk4/types.rb', line 21917

def version
  @version
end

#version=(value) ⇒ Object

Sets the value of the version attribute.

Parameters:

  • value (String)


21926
21927
21928
# File 'lib/ovirtsdk4/types.rb', line 21926

def version=(value)
  @version = value
end