Class: OvirtSDK4::HostedEngine
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#active ⇒ Boolean
Returns the value of the
activeattribute. -
#active=(value) ⇒ Object
Sets the value of the
activeattribute. -
#configured ⇒ Boolean
Returns the value of the
configuredattribute. -
#configured=(value) ⇒ Object
Sets the value of the
configuredattribute. -
#global_maintenance ⇒ Boolean
Returns the value of the
global_maintenanceattribute. -
#global_maintenance=(value) ⇒ Object
Sets the value of the
global_maintenanceattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ HostedEngine
constructor
Creates a new instance of the HostedEngine class.
-
#local_maintenance ⇒ Boolean
Returns the value of the
local_maintenanceattribute. -
#local_maintenance=(value) ⇒ Object
Sets the value of the
local_maintenanceattribute. -
#score ⇒ Integer
Returns the value of the
scoreattribute. -
#score=(value) ⇒ Object
Sets the value of the
scoreattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ HostedEngine
Creates a new instance of the OvirtSDK4::HostedEngine class.
5684 5685 5686 5687 5688 5689 5690 5691 |
# File 'lib/ovirtsdk4/types.rb', line 5684 def initialize(opts = {}) super(opts) self.active = opts[:active] self.configured = opts[:configured] self.global_maintenance = opts[:global_maintenance] self.local_maintenance = opts[:local_maintenance] self.score = opts[:score] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
5696 5697 5698 5699 5700 5701 5702 5703 |
# File 'lib/ovirtsdk4/types.rb', line 5696 def ==(other) super && @active == other.active && @configured == other.configured && @global_maintenance == other.global_maintenance && @local_maintenance == other.local_maintenance && @score == other.score end |
#active ⇒ Boolean
Returns the value of the active attribute.
5581 5582 5583 |
# File 'lib/ovirtsdk4/types.rb', line 5581 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active attribute.
5590 5591 5592 |
# File 'lib/ovirtsdk4/types.rb', line 5590 def active=(value) @active = value end |
#configured ⇒ Boolean
Returns the value of the configured attribute.
5599 5600 5601 |
# File 'lib/ovirtsdk4/types.rb', line 5599 def configured @configured end |
#configured=(value) ⇒ Object
Sets the value of the configured attribute.
5608 5609 5610 |
# File 'lib/ovirtsdk4/types.rb', line 5608 def configured=(value) @configured = value end |
#global_maintenance ⇒ Boolean
Returns the value of the global_maintenance attribute.
5617 5618 5619 |
# File 'lib/ovirtsdk4/types.rb', line 5617 def global_maintenance @global_maintenance end |
#global_maintenance=(value) ⇒ Object
Sets the value of the global_maintenance attribute.
5626 5627 5628 |
# File 'lib/ovirtsdk4/types.rb', line 5626 def global_maintenance=(value) @global_maintenance = value end |
#hash ⇒ Object
Generates a hash value for this object.
5708 5709 5710 5711 5712 5713 5714 5715 |
# File 'lib/ovirtsdk4/types.rb', line 5708 def hash super + @active.hash + @configured.hash + @global_maintenance.hash + @local_maintenance.hash + @score.hash end |
#local_maintenance ⇒ Boolean
Returns the value of the local_maintenance attribute.
5635 5636 5637 |
# File 'lib/ovirtsdk4/types.rb', line 5635 def local_maintenance @local_maintenance end |
#local_maintenance=(value) ⇒ Object
Sets the value of the local_maintenance attribute.
5644 5645 5646 |
# File 'lib/ovirtsdk4/types.rb', line 5644 def local_maintenance=(value) @local_maintenance = value end |
#score ⇒ Integer
Returns the value of the score attribute.
5653 5654 5655 |
# File 'lib/ovirtsdk4/types.rb', line 5653 def score @score end |
#score=(value) ⇒ Object
Sets the value of the score attribute.
5662 5663 5664 |
# File 'lib/ovirtsdk4/types.rb', line 5662 def score=(value) @score = value end |