Class: OvirtSDK4::ReportedConfiguration
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#actual_value ⇒ String
Returns the value of the
actual_valueattribute. -
#actual_value=(value) ⇒ Object
Sets the value of the
actual_valueattribute. -
#expected_value ⇒ String
Returns the value of the
expected_valueattribute. -
#expected_value=(value) ⇒ Object
Sets the value of the
expected_valueattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#in_sync ⇒ Boolean
Returns the value of the
in_syncattribute. -
#in_sync=(value) ⇒ Object
Sets the value of the
in_syncattribute. -
#initialize(opts = {}) ⇒ ReportedConfiguration
constructor
Creates a new instance of the ReportedConfiguration class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ReportedConfiguration
Creates a new instance of the OvirtSDK4::ReportedConfiguration class.
18393 18394 18395 18396 18397 18398 18399 |
# File 'lib/ovirtsdk4/types.rb', line 18393 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.
18404 18405 18406 18407 18408 18409 18410 |
# File 'lib/ovirtsdk4/types.rb', line 18404 def ==(other) super && @actual_value == other.actual_value && @expected_value == other.expected_value && @in_sync == other.in_sync && @name == other.name end |
#actual_value ⇒ String
Returns the value of the actual_value attribute.
18310 18311 18312 |
# File 'lib/ovirtsdk4/types.rb', line 18310 def actual_value @actual_value end |
#actual_value=(value) ⇒ Object
Sets the value of the actual_value attribute.
18319 18320 18321 |
# File 'lib/ovirtsdk4/types.rb', line 18319 def actual_value=(value) @actual_value = value end |
#expected_value ⇒ String
Returns the value of the expected_value attribute.
18328 18329 18330 |
# File 'lib/ovirtsdk4/types.rb', line 18328 def expected_value @expected_value end |
#expected_value=(value) ⇒ Object
Sets the value of the expected_value attribute.
18337 18338 18339 |
# File 'lib/ovirtsdk4/types.rb', line 18337 def expected_value=(value) @expected_value = value end |
#hash ⇒ Object
Generates a hash value for this object.
18415 18416 18417 18418 18419 18420 18421 |
# File 'lib/ovirtsdk4/types.rb', line 18415 def hash super + @actual_value.hash + @expected_value.hash + @in_sync.hash + @name.hash end |
#in_sync ⇒ Boolean
Returns the value of the in_sync attribute.
18346 18347 18348 |
# File 'lib/ovirtsdk4/types.rb', line 18346 def in_sync @in_sync end |
#in_sync=(value) ⇒ Object
Sets the value of the in_sync attribute.
18355 18356 18357 |
# File 'lib/ovirtsdk4/types.rb', line 18355 def in_sync=(value) @in_sync = value end |
#name ⇒ String
Returns the value of the name attribute.
18364 18365 18366 |
# File 'lib/ovirtsdk4/types.rb', line 18364 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
18373 18374 18375 |
# File 'lib/ovirtsdk4/types.rb', line 18373 def name=(value) @name = value end |