Class: OvirtSDK4::LinkLayerDiscoveryProtocolElement
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::LinkLayerDiscoveryProtocolElement
- 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. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ LinkLayerDiscoveryProtocolElement
constructor
Creates a new instance of the LinkLayerDiscoveryProtocolElement class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#oui ⇒ Integer
Returns the value of the
oui
attribute. -
#oui=(value) ⇒ Object
Sets the value of the
oui
attribute. -
#properties ⇒ Array<Property>
Returns the value of the
properties
attribute. -
#properties=(list) ⇒ Object
Sets the value of the
properties
attribute. -
#subtype ⇒ Integer
Returns the value of the
subtype
attribute. -
#subtype=(value) ⇒ Object
Sets the value of the
subtype
attribute. -
#type ⇒ Integer
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ LinkLayerDiscoveryProtocolElement
Creates a new instance of the OvirtSDK4::LinkLayerDiscoveryProtocolElement class.
8694 8695 8696 8697 8698 8699 8700 |
# File 'lib/ovirtsdk4/types.rb', line 8694 def initialize(opts = {}) super(opts) self.oui = opts[:oui] self.properties = opts[:properties] self.subtype = opts[:subtype] self.type = opts[:type] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
8705 8706 8707 8708 8709 8710 8711 |
# File 'lib/ovirtsdk4/types.rb', line 8705 def ==(other) super && @oui == other.oui && @properties == other.properties && @subtype == other.subtype && @type == other.type end |
#comment ⇒ String
Returns the value of the comment
attribute.
8523 8524 8525 |
# File 'lib/ovirtsdk4/types.rb', line 8523 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
8532 8533 8534 |
# File 'lib/ovirtsdk4/types.rb', line 8532 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
8541 8542 8543 |
# File 'lib/ovirtsdk4/types.rb', line 8541 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
8550 8551 8552 |
# File 'lib/ovirtsdk4/types.rb', line 8550 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
8716 8717 8718 8719 8720 8721 8722 |
# File 'lib/ovirtsdk4/types.rb', line 8716 def hash super + @oui.hash + @properties.hash + @subtype.hash + @type.hash end |
#id ⇒ String
Returns the value of the id
attribute.
8559 8560 8561 |
# File 'lib/ovirtsdk4/types.rb', line 8559 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
8568 8569 8570 |
# File 'lib/ovirtsdk4/types.rb', line 8568 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
8577 8578 8579 |
# File 'lib/ovirtsdk4/types.rb', line 8577 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
8586 8587 8588 |
# File 'lib/ovirtsdk4/types.rb', line 8586 def name=(value) @name = value end |
#oui ⇒ Integer
Returns the value of the oui
attribute.
8595 8596 8597 |
# File 'lib/ovirtsdk4/types.rb', line 8595 def oui @oui end |
#oui=(value) ⇒ Object
Sets the value of the oui
attribute.
8604 8605 8606 |
# File 'lib/ovirtsdk4/types.rb', line 8604 def oui=(value) @oui = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
8613 8614 8615 |
# File 'lib/ovirtsdk4/types.rb', line 8613 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 |
# File 'lib/ovirtsdk4/types.rb', line 8622 def properties=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Property.new(value) end end end @properties = list end |
#subtype ⇒ Integer
Returns the value of the subtype
attribute.
8639 8640 8641 |
# File 'lib/ovirtsdk4/types.rb', line 8639 def subtype @subtype end |
#subtype=(value) ⇒ Object
Sets the value of the subtype
attribute.
8648 8649 8650 |
# File 'lib/ovirtsdk4/types.rb', line 8648 def subtype=(value) @subtype = value end |
#type ⇒ Integer
Returns the value of the type
attribute.
8657 8658 8659 |
# File 'lib/ovirtsdk4/types.rb', line 8657 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
8666 8667 8668 |
# File 'lib/ovirtsdk4/types.rb', line 8666 def type=(value) @type = value end |