Class: OvirtSDK4::HardwareInformation
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#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 = {}) ⇒ HardwareInformation
constructor
Creates a new instance of the HardwareInformation class.
-
#manufacturer ⇒ String
Returns the value of the
manufacturerattribute. -
#manufacturer=(value) ⇒ Object
Sets the value of the
manufacturerattribute. -
#product_name ⇒ String
Returns the value of the
product_nameattribute. -
#product_name=(value) ⇒ Object
Sets the value of the
product_nameattribute. -
#serial_number ⇒ String
Returns the value of the
serial_numberattribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_numberattribute. -
#supported_rng_sources ⇒ Array<RngSource>
Returns the value of the
supported_rng_sourcesattribute. -
#supported_rng_sources=(list) ⇒ Object
Sets the value of the
supported_rng_sourcesattribute. -
#uuid ⇒ String
Returns the value of the
uuidattribute. -
#uuid=(value) ⇒ Object
Sets the value of the
uuidattribute. -
#version ⇒ String
Returns the value of the
versionattribute. -
#version=(value) ⇒ Object
Sets the value of the
versionattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ HardwareInformation
Creates a new instance of the OvirtSDK4::HardwareInformation class.
5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 |
# File 'lib/ovirtsdk4/types.rb', line 5305 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.
5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 |
# File 'lib/ovirtsdk4/types.rb', line 5319 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.
5162 5163 5164 |
# File 'lib/ovirtsdk4/types.rb', line 5162 def family @family end |
#family=(value) ⇒ Object
Sets the value of the family attribute.
5171 5172 5173 |
# File 'lib/ovirtsdk4/types.rb', line 5171 def family=(value) @family = value end |
#hash ⇒ Object
Generates a hash value for this object.
5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 |
# File 'lib/ovirtsdk4/types.rb', line 5333 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.
5180 5181 5182 |
# File 'lib/ovirtsdk4/types.rb', line 5180 def manufacturer @manufacturer end |
#manufacturer=(value) ⇒ Object
Sets the value of the manufacturer attribute.
5189 5190 5191 |
# File 'lib/ovirtsdk4/types.rb', line 5189 def manufacturer=(value) @manufacturer = value end |
#product_name ⇒ String
Returns the value of the product_name attribute.
5198 5199 5200 |
# File 'lib/ovirtsdk4/types.rb', line 5198 def product_name @product_name end |
#product_name=(value) ⇒ Object
Sets the value of the product_name attribute.
5207 5208 5209 |
# File 'lib/ovirtsdk4/types.rb', line 5207 def product_name=(value) @product_name = value end |
#serial_number ⇒ String
Returns the value of the serial_number attribute.
5216 5217 5218 |
# File 'lib/ovirtsdk4/types.rb', line 5216 def serial_number @serial_number end |
#serial_number=(value) ⇒ Object
Sets the value of the serial_number attribute.
5225 5226 5227 |
# File 'lib/ovirtsdk4/types.rb', line 5225 def serial_number=(value) @serial_number = value end |
#supported_rng_sources ⇒ Array<RngSource>
Returns the value of the supported_rng_sources attribute.
5234 5235 5236 |
# File 'lib/ovirtsdk4/types.rb', line 5234 def supported_rng_sources @supported_rng_sources end |
#supported_rng_sources=(list) ⇒ Object
Sets the value of the supported_rng_sources attribute.
5243 5244 5245 |
# File 'lib/ovirtsdk4/types.rb', line 5243 def supported_rng_sources=(list) @supported_rng_sources = list end |
#uuid ⇒ String
Returns the value of the uuid attribute.
5252 5253 5254 |
# File 'lib/ovirtsdk4/types.rb', line 5252 def uuid @uuid end |
#uuid=(value) ⇒ Object
Sets the value of the uuid attribute.
5261 5262 5263 |
# File 'lib/ovirtsdk4/types.rb', line 5261 def uuid=(value) @uuid = value end |
#version ⇒ String
Returns the value of the version attribute.
5270 5271 5272 |
# File 'lib/ovirtsdk4/types.rb', line 5270 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version attribute.
5279 5280 5281 |
# File 'lib/ovirtsdk4/types.rb', line 5279 def version=(value) @version = value end |