Class: OvirtSDK4::HostedEngine
- 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. -
#active ⇒ Boolean
Returns the value of the
active
attribute. -
#active=(value) ⇒ Object
Sets the value of the
active
attribute. -
#configured ⇒ Boolean
Returns the value of the
configured
attribute. -
#configured=(value) ⇒ Object
Sets the value of the
configured
attribute. -
#global_maintenance ⇒ Boolean
Returns the value of the
global_maintenance
attribute. -
#global_maintenance=(value) ⇒ Object
Sets the value of the
global_maintenance
attribute. -
#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_maintenance
attribute. -
#local_maintenance=(value) ⇒ Object
Sets the value of the
local_maintenance
attribute. -
#score ⇒ Integer
Returns the value of the
score
attribute. -
#score=(value) ⇒ Object
Sets the value of the
score
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ HostedEngine
Creates a new instance of the OvirtSDK4::HostedEngine class.
5041 5042 5043 5044 5045 5046 5047 5048 |
# File 'lib/ovirtsdk4/types.rb', line 5041 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.
5053 5054 5055 5056 5057 5058 5059 5060 |
# File 'lib/ovirtsdk4/types.rb', line 5053 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.
4938 4939 4940 |
# File 'lib/ovirtsdk4/types.rb', line 4938 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
4947 4948 4949 |
# File 'lib/ovirtsdk4/types.rb', line 4947 def active=(value) @active = value end |
#configured ⇒ Boolean
Returns the value of the configured
attribute.
4956 4957 4958 |
# File 'lib/ovirtsdk4/types.rb', line 4956 def configured @configured end |
#configured=(value) ⇒ Object
Sets the value of the configured
attribute.
4965 4966 4967 |
# File 'lib/ovirtsdk4/types.rb', line 4965 def configured=(value) @configured = value end |
#global_maintenance ⇒ Boolean
Returns the value of the global_maintenance
attribute.
4974 4975 4976 |
# File 'lib/ovirtsdk4/types.rb', line 4974 def global_maintenance @global_maintenance end |
#global_maintenance=(value) ⇒ Object
Sets the value of the global_maintenance
attribute.
4983 4984 4985 |
# File 'lib/ovirtsdk4/types.rb', line 4983 def global_maintenance=(value) @global_maintenance = value end |
#hash ⇒ Object
Generates a hash value for this object.
5065 5066 5067 5068 5069 5070 5071 5072 |
# File 'lib/ovirtsdk4/types.rb', line 5065 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.
4992 4993 4994 |
# File 'lib/ovirtsdk4/types.rb', line 4992 def local_maintenance @local_maintenance end |
#local_maintenance=(value) ⇒ Object
Sets the value of the local_maintenance
attribute.
5001 5002 5003 |
# File 'lib/ovirtsdk4/types.rb', line 5001 def local_maintenance=(value) @local_maintenance = value end |
#score ⇒ Integer
Returns the value of the score
attribute.
5010 5011 5012 |
# File 'lib/ovirtsdk4/types.rb', line 5010 def score @score end |
#score=(value) ⇒ Object
Sets the value of the score
attribute.
5019 5020 5021 |
# File 'lib/ovirtsdk4/types.rb', line 5019 def score=(value) @score = value end |