Class: OvirtSDK4::ReportedConfiguration
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#actual_value ⇒ String
Returns the value of the
actual_value
attribute. -
#actual_value=(value) ⇒ Object
Sets the value of the
actual_value
attribute. -
#expected_value ⇒ String
Returns the value of the
expected_value
attribute. -
#expected_value=(value) ⇒ Object
Sets the value of the
expected_value
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#in_sync ⇒ Boolean
Returns the value of the
in_sync
attribute. -
#in_sync=(value) ⇒ Object
Sets the value of the
in_sync
attribute. -
#initialize(opts = {}) ⇒ ReportedConfiguration
constructor
Creates a new instance of the ReportedConfiguration class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ReportedConfiguration
Creates a new instance of the OvirtSDK4::ReportedConfiguration class.
18123 18124 18125 18126 18127 18128 18129 |
# File 'lib/ovirtsdk4/types.rb', line 18123 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.
18134 18135 18136 18137 18138 18139 18140 |
# File 'lib/ovirtsdk4/types.rb', line 18134 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.
18040 18041 18042 |
# File 'lib/ovirtsdk4/types.rb', line 18040 def actual_value @actual_value end |
#actual_value=(value) ⇒ Object
Sets the value of the actual_value
attribute.
18049 18050 18051 |
# File 'lib/ovirtsdk4/types.rb', line 18049 def actual_value=(value) @actual_value = value end |
#expected_value ⇒ String
Returns the value of the expected_value
attribute.
18058 18059 18060 |
# File 'lib/ovirtsdk4/types.rb', line 18058 def expected_value @expected_value end |
#expected_value=(value) ⇒ Object
Sets the value of the expected_value
attribute.
18067 18068 18069 |
# File 'lib/ovirtsdk4/types.rb', line 18067 def expected_value=(value) @expected_value = value end |
#hash ⇒ Object
Generates a hash value for this object.
18145 18146 18147 18148 18149 18150 18151 |
# File 'lib/ovirtsdk4/types.rb', line 18145 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.
18076 18077 18078 |
# File 'lib/ovirtsdk4/types.rb', line 18076 def in_sync @in_sync end |
#in_sync=(value) ⇒ Object
Sets the value of the in_sync
attribute.
18085 18086 18087 |
# File 'lib/ovirtsdk4/types.rb', line 18085 def in_sync=(value) @in_sync = value end |
#name ⇒ String
Returns the value of the name
attribute.
18094 18095 18096 |
# File 'lib/ovirtsdk4/types.rb', line 18094 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
18103 18104 18105 |
# File 'lib/ovirtsdk4/types.rb', line 18103 def name=(value) @name = value end |