Class: OvirtSDK4::CpuType
- 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. -
#architecture ⇒ Architecture
Returns the value of the
architecture
attribute. -
#architecture=(value) ⇒ Object
Sets the value of the
architecture
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ CpuType
constructor
Creates a new instance of the CpuType class.
-
#level ⇒ Integer
Returns the value of the
level
attribute. -
#level=(value) ⇒ Object
Sets the value of the
level
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ CpuType
Creates a new instance of the OvirtSDK4::CpuType class.
2701 2702 2703 2704 2705 2706 |
# File 'lib/ovirtsdk4/types.rb', line 2701 def initialize(opts = {}) super(opts) self.architecture = opts[:architecture] self.level = opts[:level] self.name = opts[:name] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
2711 2712 2713 2714 2715 2716 |
# File 'lib/ovirtsdk4/types.rb', line 2711 def ==(other) super && @architecture == other.architecture && @level == other.level && @name == other.name end |
#architecture ⇒ Architecture
Returns the value of the architecture
attribute.
2638 2639 2640 |
# File 'lib/ovirtsdk4/types.rb', line 2638 def architecture @architecture end |
#architecture=(value) ⇒ Object
Sets the value of the architecture
attribute.
2647 2648 2649 |
# File 'lib/ovirtsdk4/types.rb', line 2647 def architecture=(value) @architecture = value end |
#hash ⇒ Object
Generates a hash value for this object.
2721 2722 2723 2724 2725 2726 |
# File 'lib/ovirtsdk4/types.rb', line 2721 def hash super + @architecture.hash + @level.hash + @name.hash end |
#level ⇒ Integer
Returns the value of the level
attribute.
2656 2657 2658 |
# File 'lib/ovirtsdk4/types.rb', line 2656 def level @level end |
#level=(value) ⇒ Object
Sets the value of the level
attribute.
2665 2666 2667 |
# File 'lib/ovirtsdk4/types.rb', line 2665 def level=(value) @level = value end |
#name ⇒ String
Returns the value of the name
attribute.
2674 2675 2676 |
# File 'lib/ovirtsdk4/types.rb', line 2674 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
2683 2684 2685 |
# File 'lib/ovirtsdk4/types.rb', line 2683 def name=(value) @name = value end |