Class: OvirtSDK4::GuestOperatingSystem
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#architecture ⇒ String
Returns the value of the
architectureattribute. -
#architecture=(value) ⇒ Object
Sets the value of the
architectureattribute. -
#codename ⇒ String
Returns the value of the
codenameattribute. -
#codename=(value) ⇒ Object
Sets the value of the
codenameattribute. -
#distribution ⇒ String
Returns the value of the
distributionattribute. -
#distribution=(value) ⇒ Object
Sets the value of the
distributionattribute. -
#family ⇒ String
Returns the value of the
familyattribute. -
#family=(value) ⇒ Object
Sets the value of the
familyattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ GuestOperatingSystem
constructor
Creates a new instance of the GuestOperatingSystem class.
-
#kernel ⇒ Kernel
Returns the value of the
kernelattribute. -
#kernel=(value) ⇒ Object
Sets the value of the
kernelattribute. -
#version ⇒ Version
Returns the value of the
versionattribute. -
#version=(value) ⇒ Object
Sets the value of the
versionattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GuestOperatingSystem
Creates a new instance of the OvirtSDK4::GuestOperatingSystem class.
5117 5118 5119 5120 5121 5122 5123 5124 5125 |
# File 'lib/ovirtsdk4/types.rb', line 5117 def initialize(opts = {}) super(opts) self.architecture = opts[:architecture] self.codename = opts[:codename] self.distribution = opts[:distribution] self.family = opts[:family] self.kernel = opts[:kernel] self.version = opts[:version] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
5130 5131 5132 5133 5134 5135 5136 5137 5138 |
# File 'lib/ovirtsdk4/types.rb', line 5130 def ==(other) super && @architecture == other.architecture && @codename == other.codename && @distribution == other.distribution && @family == other.family && @kernel == other.kernel && @version == other.version end |
#architecture ⇒ String
Returns the value of the architecture attribute.
4980 4981 4982 |
# File 'lib/ovirtsdk4/types.rb', line 4980 def architecture @architecture end |
#architecture=(value) ⇒ Object
Sets the value of the architecture attribute.
4989 4990 4991 |
# File 'lib/ovirtsdk4/types.rb', line 4989 def architecture=(value) @architecture = value end |
#codename ⇒ String
Returns the value of the codename attribute.
4998 4999 5000 |
# File 'lib/ovirtsdk4/types.rb', line 4998 def codename @codename end |
#codename=(value) ⇒ Object
Sets the value of the codename attribute.
5007 5008 5009 |
# File 'lib/ovirtsdk4/types.rb', line 5007 def codename=(value) @codename = value end |
#distribution ⇒ String
Returns the value of the distribution attribute.
5016 5017 5018 |
# File 'lib/ovirtsdk4/types.rb', line 5016 def distribution @distribution end |
#distribution=(value) ⇒ Object
Sets the value of the distribution attribute.
5025 5026 5027 |
# File 'lib/ovirtsdk4/types.rb', line 5025 def distribution=(value) @distribution = value end |
#family ⇒ String
Returns the value of the family attribute.
5034 5035 5036 |
# File 'lib/ovirtsdk4/types.rb', line 5034 def family @family end |
#family=(value) ⇒ Object
Sets the value of the family attribute.
5043 5044 5045 |
# File 'lib/ovirtsdk4/types.rb', line 5043 def family=(value) @family = value end |
#hash ⇒ Object
Generates a hash value for this object.
5143 5144 5145 5146 5147 5148 5149 5150 5151 |
# File 'lib/ovirtsdk4/types.rb', line 5143 def hash super + @architecture.hash + @codename.hash + @distribution.hash + @family.hash + @kernel.hash + @version.hash end |
#kernel ⇒ Kernel
Returns the value of the kernel attribute.
5052 5053 5054 |
# File 'lib/ovirtsdk4/types.rb', line 5052 def kernel @kernel end |
#kernel=(value) ⇒ Object
Sets the value of the kernel attribute.
The value parameter can be an instance of Kernel 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.
5065 5066 5067 5068 5069 5070 |
# File 'lib/ovirtsdk4/types.rb', line 5065 def kernel=(value) if value.is_a?(Hash) value = Kernel.new(value) end @kernel = value end |
#version ⇒ Version
Returns the value of the version attribute.
5077 5078 5079 |
# File 'lib/ovirtsdk4/types.rb', line 5077 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version attribute.
The value parameter can be an instance of Version 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.
5090 5091 5092 5093 5094 5095 |
# File 'lib/ovirtsdk4/types.rb', line 5090 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |