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.

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.



17393
17394
17395
17396
17397
17398
17399
# File 'lib/ovirtsdk4/types.rb', line 17393

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.



17404
17405
17406
17407
17408
17409
17410
# File 'lib/ovirtsdk4/types.rb', line 17404

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.



17310
17311
17312
# File 'lib/ovirtsdk4/types.rb', line 17310

def actual_value
  @actual_value
end

#actual_value=(value) ⇒ Object

Sets the value of the actual_value attribute.



17319
17320
17321
# File 'lib/ovirtsdk4/types.rb', line 17319

def actual_value=(value)
  @actual_value = value
end

#expected_valueString

Returns the value of the expected_value attribute.



17328
17329
17330
# File 'lib/ovirtsdk4/types.rb', line 17328

def expected_value
  @expected_value
end

#expected_value=(value) ⇒ Object

Sets the value of the expected_value attribute.



17337
17338
17339
# File 'lib/ovirtsdk4/types.rb', line 17337

def expected_value=(value)
  @expected_value = value
end

#hashObject

Generates a hash value for this object.



17415
17416
17417
17418
17419
17420
17421
# File 'lib/ovirtsdk4/types.rb', line 17415

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.



17346
17347
17348
# File 'lib/ovirtsdk4/types.rb', line 17346

def in_sync
  @in_sync
end

#in_sync=(value) ⇒ Object

Sets the value of the in_sync attribute.



17355
17356
17357
# File 'lib/ovirtsdk4/types.rb', line 17355

def in_sync=(value)
  @in_sync = value
end

#nameString

Returns the value of the name attribute.



17364
17365
17366
# File 'lib/ovirtsdk4/types.rb', line 17364

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.



17373
17374
17375
# File 'lib/ovirtsdk4/types.rb', line 17373

def name=(value)
  @name = value
end