Class: OvirtSDK4::ReportedConfiguration

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 = {}) ⇒ ReportedConfiguration

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

  • :actual_value (String)

    The value of attribute actual_value.

  • :expected_value (String)

    The value of attribute expected_value.

  • :in_sync (Boolean)

    The value of attribute in_sync.

  • :name (String)

    The value of attribute name.


17544
17545
17546
17547
17548
17549
17550
# File 'lib/ovirtsdk4/types.rb', line 17544

def initialize(opts = {})
  super(opts)
  self.actual_value = opts[:actual_value]
  self.expected_value = opts[:expected_value]
  self.in_sync = opts[:in_sync]
  self.name = opts[:name]
end

Instance Method Details

#==(other) ⇒ Object

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


17555
17556
17557
17558
17559
17560
17561
# File 'lib/ovirtsdk4/types.rb', line 17555

def ==(other)
  super &&
  @actual_value == other.actual_value &&
  @expected_value == other.expected_value &&
  @in_sync == other.in_sync &&
  @name == other.name
end

#actual_valueString

Returns the value of the actual_value attribute.

Returns:

  • (String)

17461
17462
17463
# File 'lib/ovirtsdk4/types.rb', line 17461

def actual_value
  @actual_value
end

#actual_value=(value) ⇒ Object

Sets the value of the actual_value attribute.

Parameters:

  • value (String)

17470
17471
17472
# File 'lib/ovirtsdk4/types.rb', line 17470

def actual_value=(value)
  @actual_value = value
end

#expected_valueString

Returns the value of the expected_value attribute.

Returns:

  • (String)

17479
17480
17481
# File 'lib/ovirtsdk4/types.rb', line 17479

def expected_value
  @expected_value
end

#expected_value=(value) ⇒ Object

Sets the value of the expected_value attribute.

Parameters:

  • value (String)

17488
17489
17490
# File 'lib/ovirtsdk4/types.rb', line 17488

def expected_value=(value)
  @expected_value = value
end

#hashObject

Generates a hash value for this object.


17566
17567
17568
17569
17570
17571
17572
# File 'lib/ovirtsdk4/types.rb', line 17566

def hash
  super +
  @actual_value.hash +
  @expected_value.hash +
  @in_sync.hash +
  @name.hash
end

#in_syncBoolean

Returns the value of the in_sync attribute.

Returns:

  • (Boolean)

17497
17498
17499
# File 'lib/ovirtsdk4/types.rb', line 17497

def in_sync
  @in_sync
end

#in_sync=(value) ⇒ Object

Sets the value of the in_sync attribute.

Parameters:

  • value (Boolean)

17506
17507
17508
# File 'lib/ovirtsdk4/types.rb', line 17506

def in_sync=(value)
  @in_sync = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

17515
17516
17517
# File 'lib/ovirtsdk4/types.rb', line 17515

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

17524
17525
17526
# File 'lib/ovirtsdk4/types.rb', line 17524

def name=(value)
  @name = value
end