Class: OvirtSDK4::HardwareInformation
- 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. -
#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 = {}) ⇒ HardwareInformation
constructor
Creates a new instance of the HardwareInformation class.
-
#manufacturer ⇒ String
Returns the value of the
manufacturer
attribute. -
#manufacturer=(value) ⇒ Object
Sets the value of the
manufacturer
attribute. -
#product_name ⇒ String
Returns the value of the
product_name
attribute. -
#product_name=(value) ⇒ Object
Sets the value of the
product_name
attribute. -
#serial_number ⇒ String
Returns the value of the
serial_number
attribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_number
attribute. -
#supported_rng_sources ⇒ Array<RngSource>
Returns the value of the
supported_rng_sources
attribute. -
#supported_rng_sources=(list) ⇒ Object
Sets the value of the
supported_rng_sources
attribute. -
#uuid ⇒ String
Returns the value of the
uuid
attribute. -
#uuid=(value) ⇒ Object
Sets the value of the
uuid
attribute. -
#version ⇒ String
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 = {}) ⇒ HardwareInformation
Creates a new instance of the OvirtSDK4::HardwareInformation class.
5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 |
# File 'lib/ovirtsdk4/types.rb', line 5081 def initialize(opts = {}) super(opts) self.family = opts[:family] self.manufacturer = opts[:manufacturer] self.product_name = opts[:product_name] self.serial_number = opts[:serial_number] self.supported_rng_sources = opts[:supported_rng_sources] self.uuid = opts[:uuid] self.version = opts[:version] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 |
# File 'lib/ovirtsdk4/types.rb', line 5095 def ==(other) super && @family == other.family && @manufacturer == other.manufacturer && @product_name == other.product_name && @serial_number == other.serial_number && @supported_rng_sources == other.supported_rng_sources && @uuid == other.uuid && @version == other.version end |
#family ⇒ String
Returns the value of the family
attribute.
4938 4939 4940 |
# File 'lib/ovirtsdk4/types.rb', line 4938 def family @family end |
#family=(value) ⇒ Object
Sets the value of the family
attribute.
4947 4948 4949 |
# File 'lib/ovirtsdk4/types.rb', line 4947 def family=(value) @family = value end |
#hash ⇒ Object
Generates a hash value for this object.
5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 |
# File 'lib/ovirtsdk4/types.rb', line 5109 def hash super + @family.hash + @manufacturer.hash + @product_name.hash + @serial_number.hash + @supported_rng_sources.hash + @uuid.hash + @version.hash end |
#manufacturer ⇒ String
Returns the value of the manufacturer
attribute.
4956 4957 4958 |
# File 'lib/ovirtsdk4/types.rb', line 4956 def manufacturer @manufacturer end |
#manufacturer=(value) ⇒ Object
Sets the value of the manufacturer
attribute.
4965 4966 4967 |
# File 'lib/ovirtsdk4/types.rb', line 4965 def manufacturer=(value) @manufacturer = value end |
#product_name ⇒ String
Returns the value of the product_name
attribute.
4974 4975 4976 |
# File 'lib/ovirtsdk4/types.rb', line 4974 def product_name @product_name end |
#product_name=(value) ⇒ Object
Sets the value of the product_name
attribute.
4983 4984 4985 |
# File 'lib/ovirtsdk4/types.rb', line 4983 def product_name=(value) @product_name = value end |
#serial_number ⇒ String
Returns the value of the serial_number
attribute.
4992 4993 4994 |
# File 'lib/ovirtsdk4/types.rb', line 4992 def serial_number @serial_number end |
#serial_number=(value) ⇒ Object
Sets the value of the serial_number
attribute.
5001 5002 5003 |
# File 'lib/ovirtsdk4/types.rb', line 5001 def serial_number=(value) @serial_number = value end |
#supported_rng_sources ⇒ Array<RngSource>
Returns the value of the supported_rng_sources
attribute.
5010 5011 5012 |
# File 'lib/ovirtsdk4/types.rb', line 5010 def supported_rng_sources @supported_rng_sources end |
#supported_rng_sources=(list) ⇒ Object
Sets the value of the supported_rng_sources
attribute.
5019 5020 5021 |
# File 'lib/ovirtsdk4/types.rb', line 5019 def supported_rng_sources=(list) @supported_rng_sources = list end |
#uuid ⇒ String
Returns the value of the uuid
attribute.
5028 5029 5030 |
# File 'lib/ovirtsdk4/types.rb', line 5028 def uuid @uuid end |
#uuid=(value) ⇒ Object
Sets the value of the uuid
attribute.
5037 5038 5039 |
# File 'lib/ovirtsdk4/types.rb', line 5037 def uuid=(value) @uuid = value end |
#version ⇒ String
Returns the value of the version
attribute.
5046 5047 5048 |
# File 'lib/ovirtsdk4/types.rb', line 5046 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
5055 5056 5057 |
# File 'lib/ovirtsdk4/types.rb', line 5055 def version=(value) @version = value end |