Class: OvirtSDK4::GuestOperatingSystem
- 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 ⇒ String
Returns the value of the
architecture
attribute. -
#architecture=(value) ⇒ Object
Sets the value of the
architecture
attribute. -
#codename ⇒ String
Returns the value of the
codename
attribute. -
#codename=(value) ⇒ Object
Sets the value of the
codename
attribute. -
#distribution ⇒ String
Returns the value of the
distribution
attribute. -
#distribution=(value) ⇒ Object
Sets the value of the
distribution
attribute. -
#family ⇒ String
Returns the value of the
family
attribute. -
#family=(value) ⇒ Object
Sets the value of the
family
attribute. -
#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
kernel
attribute. -
#kernel=(value) ⇒ Object
Sets the value of the
kernel
attribute. -
#version ⇒ Version
Returns the value of the
version
attribute. -
#version=(value) ⇒ Object
Sets the value of the
version
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GuestOperatingSystem
Creates a new instance of the OvirtSDK4::GuestOperatingSystem class.
4474 4475 4476 4477 4478 4479 4480 4481 4482 |
# File 'lib/ovirtsdk4/types.rb', line 4474 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.
4487 4488 4489 4490 4491 4492 4493 4494 4495 |
# File 'lib/ovirtsdk4/types.rb', line 4487 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.
4337 4338 4339 |
# File 'lib/ovirtsdk4/types.rb', line 4337 def architecture @architecture end |
#architecture=(value) ⇒ Object
Sets the value of the architecture
attribute.
4346 4347 4348 |
# File 'lib/ovirtsdk4/types.rb', line 4346 def architecture=(value) @architecture = value end |
#codename ⇒ String
Returns the value of the codename
attribute.
4355 4356 4357 |
# File 'lib/ovirtsdk4/types.rb', line 4355 def codename @codename end |
#codename=(value) ⇒ Object
Sets the value of the codename
attribute.
4364 4365 4366 |
# File 'lib/ovirtsdk4/types.rb', line 4364 def codename=(value) @codename = value end |
#distribution ⇒ String
Returns the value of the distribution
attribute.
4373 4374 4375 |
# File 'lib/ovirtsdk4/types.rb', line 4373 def distribution @distribution end |
#distribution=(value) ⇒ Object
Sets the value of the distribution
attribute.
4382 4383 4384 |
# File 'lib/ovirtsdk4/types.rb', line 4382 def distribution=(value) @distribution = value end |
#family ⇒ String
Returns the value of the family
attribute.
4391 4392 4393 |
# File 'lib/ovirtsdk4/types.rb', line 4391 def family @family end |
#family=(value) ⇒ Object
Sets the value of the family
attribute.
4400 4401 4402 |
# File 'lib/ovirtsdk4/types.rb', line 4400 def family=(value) @family = value end |
#hash ⇒ Object
Generates a hash value for this object.
4500 4501 4502 4503 4504 4505 4506 4507 4508 |
# File 'lib/ovirtsdk4/types.rb', line 4500 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.
4409 4410 4411 |
# File 'lib/ovirtsdk4/types.rb', line 4409 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.
4422 4423 4424 4425 4426 4427 |
# File 'lib/ovirtsdk4/types.rb', line 4422 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.
4434 4435 4436 |
# File 'lib/ovirtsdk4/types.rb', line 4434 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.
4447 4448 4449 4450 4451 4452 |
# File 'lib/ovirtsdk4/types.rb', line 4447 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |