Class: OvirtSDK4::VcpuPin
- 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. -
#cpu_set ⇒ String
Returns the value of the
cpu_set
attribute. -
#cpu_set=(value) ⇒ Object
Sets the value of the
cpu_set
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ VcpuPin
constructor
Creates a new instance of the VcpuPin class.
-
#vcpu ⇒ Integer
Returns the value of the
vcpu
attribute. -
#vcpu=(value) ⇒ Object
Sets the value of the
vcpu
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VcpuPin
Creates a new instance of the OvirtSDK4::VcpuPin class.
24746 24747 24748 24749 24750 |
# File 'lib/ovirtsdk4/types.rb', line 24746 def initialize(opts = {}) super(opts) self.cpu_set = opts[:cpu_set] self.vcpu = opts[:vcpu] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
24755 24756 24757 24758 24759 |
# File 'lib/ovirtsdk4/types.rb', line 24755 def ==(other) super && @cpu_set == other.cpu_set && @vcpu == other.vcpu end |
#cpu_set ⇒ String
Returns the value of the cpu_set
attribute.
24703 24704 24705 |
# File 'lib/ovirtsdk4/types.rb', line 24703 def cpu_set @cpu_set end |
#cpu_set=(value) ⇒ Object
Sets the value of the cpu_set
attribute.
24712 24713 24714 |
# File 'lib/ovirtsdk4/types.rb', line 24712 def cpu_set=(value) @cpu_set = value end |
#hash ⇒ Object
Generates a hash value for this object.
24764 24765 24766 24767 24768 |
# File 'lib/ovirtsdk4/types.rb', line 24764 def hash super + @cpu_set.hash + @vcpu.hash end |
#vcpu ⇒ Integer
Returns the value of the vcpu
attribute.
24721 24722 24723 |
# File 'lib/ovirtsdk4/types.rb', line 24721 def vcpu @vcpu end |
#vcpu=(value) ⇒ Object
Sets the value of the vcpu
attribute.
24730 24731 24732 |
# File 'lib/ovirtsdk4/types.rb', line 24730 def vcpu=(value) @vcpu = value end |