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.
11619 11620 11621 11622 11623 11624 |
# File 'lib/ovirtsdk4/types.rb', line 11619 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.
11629 11630 11631 11632 11633 11634 |
# File 'lib/ovirtsdk4/types.rb', line 11629 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.
11639 11640 11641 11642 11643 11644 |
# File 'lib/ovirtsdk4/types.rb', line 11639 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.
11549 11550 11551 |
# File 'lib/ovirtsdk4/types.rb', line 11549 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.
11562 11563 11564 11565 11566 11567 |
# File 'lib/ovirtsdk4/types.rb', line 11562 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.
11574 11575 11576 |
# File 'lib/ovirtsdk4/types.rb', line 11574 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index
attribute.
11583 11584 11585 |
# File 'lib/ovirtsdk4/types.rb', line 11583 def index=(value) @index = value end |
#pinned ⇒ Boolean
Returns the value of the pinned
attribute.
11592 11593 11594 |
# File 'lib/ovirtsdk4/types.rb', line 11592 def pinned @pinned end |
#pinned=(value) ⇒ Object
Sets the value of the pinned
attribute.
11601 11602 11603 |
# File 'lib/ovirtsdk4/types.rb', line 11601 def pinned=(value) @pinned = value end |