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.
4893 4894 4895 4896 4897 4898 4899 4900 4901 |
# File 'lib/ovirtsdk4/types.rb', line 4893 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.
4906 4907 4908 4909 4910 4911 4912 4913 4914 |
# File 'lib/ovirtsdk4/types.rb', line 4906 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.
4756 4757 4758 |
# File 'lib/ovirtsdk4/types.rb', line 4756 def architecture @architecture end |
#architecture=(value) ⇒ Object
Sets the value of the architecture
attribute.
4765 4766 4767 |
# File 'lib/ovirtsdk4/types.rb', line 4765 def architecture=(value) @architecture = value end |
#codename ⇒ String
Returns the value of the codename
attribute.
4774 4775 4776 |
# File 'lib/ovirtsdk4/types.rb', line 4774 def codename @codename end |
#codename=(value) ⇒ Object
Sets the value of the codename
attribute.
4783 4784 4785 |
# File 'lib/ovirtsdk4/types.rb', line 4783 def codename=(value) @codename = value end |
#distribution ⇒ String
Returns the value of the distribution
attribute.
4792 4793 4794 |
# File 'lib/ovirtsdk4/types.rb', line 4792 def distribution @distribution end |
#distribution=(value) ⇒ Object
Sets the value of the distribution
attribute.
4801 4802 4803 |
# File 'lib/ovirtsdk4/types.rb', line 4801 def distribution=(value) @distribution = value end |
#family ⇒ String
Returns the value of the family
attribute.
4810 4811 4812 |
# File 'lib/ovirtsdk4/types.rb', line 4810 def family @family end |
#family=(value) ⇒ Object
Sets the value of the family
attribute.
4819 4820 4821 |
# File 'lib/ovirtsdk4/types.rb', line 4819 def family=(value) @family = value end |
#hash ⇒ Object
Generates a hash value for this object.
4919 4920 4921 4922 4923 4924 4925 4926 4927 |
# File 'lib/ovirtsdk4/types.rb', line 4919 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.
4828 4829 4830 |
# File 'lib/ovirtsdk4/types.rb', line 4828 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.
4841 4842 4843 4844 4845 4846 |
# File 'lib/ovirtsdk4/types.rb', line 4841 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.
4853 4854 4855 |
# File 'lib/ovirtsdk4/types.rb', line 4853 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.
4866 4867 4868 4869 4870 4871 |
# File 'lib/ovirtsdk4/types.rb', line 4866 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |