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.
17291 17292 17293 17294 17295 17296 17297 |
# File 'lib/ovirtsdk4/types.rb', line 17291 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.
17302 17303 17304 17305 17306 17307 17308 |
# File 'lib/ovirtsdk4/types.rb', line 17302 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.
17208 17209 17210 |
# File 'lib/ovirtsdk4/types.rb', line 17208 def actual_value @actual_value end |
#actual_value=(value) ⇒ Object
Sets the value of the actual_value
attribute.
17217 17218 17219 |
# File 'lib/ovirtsdk4/types.rb', line 17217 def actual_value=(value) @actual_value = value end |
#expected_value ⇒ String
Returns the value of the expected_value
attribute.
17226 17227 17228 |
# File 'lib/ovirtsdk4/types.rb', line 17226 def expected_value @expected_value end |
#expected_value=(value) ⇒ Object
Sets the value of the expected_value
attribute.
17235 17236 17237 |
# File 'lib/ovirtsdk4/types.rb', line 17235 def expected_value=(value) @expected_value = value end |
#hash ⇒ Object
Generates a hash value for this object.
17313 17314 17315 17316 17317 17318 17319 |
# File 'lib/ovirtsdk4/types.rb', line 17313 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.
17244 17245 17246 |
# File 'lib/ovirtsdk4/types.rb', line 17244 def in_sync @in_sync end |
#in_sync=(value) ⇒ Object
Sets the value of the in_sync
attribute.
17253 17254 17255 |
# File 'lib/ovirtsdk4/types.rb', line 17253 def in_sync=(value) @in_sync = value end |
#name ⇒ String
Returns the value of the name
attribute.
17262 17263 17264 |
# File 'lib/ovirtsdk4/types.rb', line 17262 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
17271 17272 17273 |
# File 'lib/ovirtsdk4/types.rb', line 17271 def name=(value) @name = value end |