Class: OvirtSDK4::NumaNodePin
- 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. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host_numa_node ⇒ NumaNode
Returns the value of the
host_numa_node
attribute. -
#host_numa_node=(value) ⇒ Object
Sets the value of the
host_numa_node
attribute. -
#index ⇒ Integer
Returns the value of the
index
attribute. -
#index=(value) ⇒ Object
Sets the value of the
index
attribute. -
#initialize(opts = {}) ⇒ NumaNodePin
constructor
Creates a new instance of the NumaNodePin class.
-
#pinned ⇒ Boolean
Returns the value of the
pinned
attribute. -
#pinned=(value) ⇒ Object
Sets the value of the
pinned
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ NumaNodePin
Creates a new instance of the OvirtSDK4::NumaNodePin class.
12428 12429 12430 12431 12432 12433 |
# File 'lib/ovirtsdk4/types.rb', line 12428 def initialize(opts = {}) super(opts) self.host_numa_node = opts[:host_numa_node] self.index = opts[:index] self.pinned = opts[:pinned] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
12438 12439 12440 12441 12442 12443 |
# File 'lib/ovirtsdk4/types.rb', line 12438 def ==(other) super && @host_numa_node == other.host_numa_node && @index == other.index && @pinned == other.pinned end |
#hash ⇒ Object
Generates a hash value for this object.
12448 12449 12450 12451 12452 12453 |
# File 'lib/ovirtsdk4/types.rb', line 12448 def hash super + @host_numa_node.hash + @index.hash + @pinned.hash end |
#host_numa_node ⇒ NumaNode
Returns the value of the host_numa_node
attribute.
12358 12359 12360 |
# File 'lib/ovirtsdk4/types.rb', line 12358 def host_numa_node @host_numa_node end |
#host_numa_node=(value) ⇒ Object
Sets the value of the host_numa_node
attribute.
The value
parameter can be an instance of OvirtSDK4::NumaNode or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
12371 12372 12373 12374 12375 12376 |
# File 'lib/ovirtsdk4/types.rb', line 12371 def host_numa_node=(value) if value.is_a?(Hash) value = NumaNode.new(value) end @host_numa_node = value end |
#index ⇒ Integer
Returns the value of the index
attribute.
12383 12384 12385 |
# File 'lib/ovirtsdk4/types.rb', line 12383 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index
attribute.
12392 12393 12394 |
# File 'lib/ovirtsdk4/types.rb', line 12392 def index=(value) @index = value end |
#pinned ⇒ Boolean
Returns the value of the pinned
attribute.
12401 12402 12403 |
# File 'lib/ovirtsdk4/types.rb', line 12401 def pinned @pinned end |
#pinned=(value) ⇒ Object
Sets the value of the pinned
attribute.
12410 12411 12412 |
# File 'lib/ovirtsdk4/types.rb', line 12410 def pinned=(value) @pinned = value end |