Class: OvirtSDK4::HighAvailability
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#enabled ⇒ Boolean
Returns the value of the
enabledattribute. -
#enabled=(value) ⇒ Object
Sets the value of the
enabledattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ HighAvailability
constructor
Creates a new instance of the HighAvailability class.
-
#priority ⇒ Integer
Returns the value of the
priorityattribute. -
#priority=(value) ⇒ Object
Sets the value of the
priorityattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ HighAvailability
Creates a new instance of the OvirtSDK4::HighAvailability class.
5396 5397 5398 5399 5400 |
# File 'lib/ovirtsdk4/types.rb', line 5396 def initialize(opts = {}) super(opts) self.enabled = opts[:enabled] self.priority = opts[:priority] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
5405 5406 5407 5408 5409 |
# File 'lib/ovirtsdk4/types.rb', line 5405 def ==(other) super && @enabled == other.enabled && @priority == other.priority end |
#enabled ⇒ Boolean
Returns the value of the enabled attribute.
5353 5354 5355 |
# File 'lib/ovirtsdk4/types.rb', line 5353 def enabled @enabled end |
#enabled=(value) ⇒ Object
Sets the value of the enabled attribute.
5362 5363 5364 |
# File 'lib/ovirtsdk4/types.rb', line 5362 def enabled=(value) @enabled = value end |
#hash ⇒ Object
Generates a hash value for this object.
5414 5415 5416 5417 5418 |
# File 'lib/ovirtsdk4/types.rb', line 5414 def hash super + @enabled.hash + @priority.hash end |
#priority ⇒ Integer
Returns the value of the priority attribute.
5371 5372 5373 |
# File 'lib/ovirtsdk4/types.rb', line 5371 def priority @priority end |
#priority=(value) ⇒ Object
Sets the value of the priority attribute.
5380 5381 5382 |
# File 'lib/ovirtsdk4/types.rb', line 5380 def priority=(value) @priority = value end |