Class: OvirtSDK4::CpuType
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#architecture ⇒ Architecture
Returns the value of the
architectureattribute. -
#architecture=(value) ⇒ Object
Sets the value of the
architectureattribute. -
#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
levelattribute. -
#level=(value) ⇒ Object
Sets the value of the
levelattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ CpuType
Creates a new instance of the OvirtSDK4::CpuType class.
2734 2735 2736 2737 2738 2739 |
# File 'lib/ovirtsdk4/types.rb', line 2734 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.
2744 2745 2746 2747 2748 2749 |
# File 'lib/ovirtsdk4/types.rb', line 2744 def ==(other) super && @architecture == other.architecture && @level == other.level && @name == other.name end |
#architecture ⇒ Architecture
Returns the value of the architecture attribute.
2671 2672 2673 |
# File 'lib/ovirtsdk4/types.rb', line 2671 def architecture @architecture end |
#architecture=(value) ⇒ Object
Sets the value of the architecture attribute.
2680 2681 2682 |
# File 'lib/ovirtsdk4/types.rb', line 2680 def architecture=(value) @architecture = value end |
#hash ⇒ Object
Generates a hash value for this object.
2754 2755 2756 2757 2758 2759 |
# File 'lib/ovirtsdk4/types.rb', line 2754 def hash super + @architecture.hash + @level.hash + @name.hash end |
#level ⇒ Integer
Returns the value of the level attribute.
2689 2690 2691 |
# File 'lib/ovirtsdk4/types.rb', line 2689 def level @level end |
#level=(value) ⇒ Object
Sets the value of the level attribute.
2698 2699 2700 |
# File 'lib/ovirtsdk4/types.rb', line 2698 def level=(value) @level = value end |
#name ⇒ String
Returns the value of the name attribute.
2707 2708 2709 |
# File 'lib/ovirtsdk4/types.rb', line 2707 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
2716 2717 2718 |
# File 'lib/ovirtsdk4/types.rb', line 2716 def name=(value) @name = value end |