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.
11978 11979 11980 11981 11982 11983 |
# File 'lib/ovirtsdk4/types.rb', line 11978 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.
11988 11989 11990 11991 11992 11993 |
# File 'lib/ovirtsdk4/types.rb', line 11988 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.
11998 11999 12000 12001 12002 12003 |
# File 'lib/ovirtsdk4/types.rb', line 11998 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.
11908 11909 11910 |
# File 'lib/ovirtsdk4/types.rb', line 11908 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.
11921 11922 11923 11924 11925 11926 |
# File 'lib/ovirtsdk4/types.rb', line 11921 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.
11933 11934 11935 |
# File 'lib/ovirtsdk4/types.rb', line 11933 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index
attribute.
11942 11943 11944 |
# File 'lib/ovirtsdk4/types.rb', line 11942 def index=(value) @index = value end |
#pinned ⇒ Boolean
Returns the value of the pinned
attribute.
11951 11952 11953 |
# File 'lib/ovirtsdk4/types.rb', line 11951 def pinned @pinned end |
#pinned=(value) ⇒ Object
Sets the value of the pinned
attribute.
11960 11961 11962 |
# File 'lib/ovirtsdk4/types.rb', line 11960 def pinned=(value) @pinned = value end |