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.
4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 |
# File 'lib/ovirtsdk4/types.rb', line 4688 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.
4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 |
# File 'lib/ovirtsdk4/types.rb', line 4702 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.
4545 4546 4547 |
# File 'lib/ovirtsdk4/types.rb', line 4545 def family @family end |
#family=(value) ⇒ Object
Sets the value of the family
attribute.
4554 4555 4556 |
# File 'lib/ovirtsdk4/types.rb', line 4554 def family=(value) @family = value end |
#hash ⇒ Object
Generates a hash value for this object.
4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 |
# File 'lib/ovirtsdk4/types.rb', line 4716 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.
4563 4564 4565 |
# File 'lib/ovirtsdk4/types.rb', line 4563 def manufacturer @manufacturer end |
#manufacturer=(value) ⇒ Object
Sets the value of the manufacturer
attribute.
4572 4573 4574 |
# File 'lib/ovirtsdk4/types.rb', line 4572 def manufacturer=(value) @manufacturer = value end |
#product_name ⇒ String
Returns the value of the product_name
attribute.
4581 4582 4583 |
# File 'lib/ovirtsdk4/types.rb', line 4581 def product_name @product_name end |
#product_name=(value) ⇒ Object
Sets the value of the product_name
attribute.
4590 4591 4592 |
# File 'lib/ovirtsdk4/types.rb', line 4590 def product_name=(value) @product_name = value end |
#serial_number ⇒ String
Returns the value of the serial_number
attribute.
4599 4600 4601 |
# File 'lib/ovirtsdk4/types.rb', line 4599 def serial_number @serial_number end |
#serial_number=(value) ⇒ Object
Sets the value of the serial_number
attribute.
4608 4609 4610 |
# File 'lib/ovirtsdk4/types.rb', line 4608 def serial_number=(value) @serial_number = value end |
#supported_rng_sources ⇒ Array<RngSource>
Returns the value of the supported_rng_sources
attribute.
4617 4618 4619 |
# File 'lib/ovirtsdk4/types.rb', line 4617 def supported_rng_sources @supported_rng_sources end |
#supported_rng_sources=(list) ⇒ Object
Sets the value of the supported_rng_sources
attribute.
4626 4627 4628 |
# File 'lib/ovirtsdk4/types.rb', line 4626 def supported_rng_sources=(list) @supported_rng_sources = list end |
#uuid ⇒ String
Returns the value of the uuid
attribute.
4635 4636 4637 |
# File 'lib/ovirtsdk4/types.rb', line 4635 def uuid @uuid end |
#uuid=(value) ⇒ Object
Sets the value of the uuid
attribute.
4644 4645 4646 |
# File 'lib/ovirtsdk4/types.rb', line 4644 def uuid=(value) @uuid = value end |
#version ⇒ String
Returns the value of the version
attribute.
4653 4654 4655 |
# File 'lib/ovirtsdk4/types.rb', line 4653 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
4662 4663 4664 |
# File 'lib/ovirtsdk4/types.rb', line 4662 def version=(value) @version = value end |