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
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ LinkLayerDiscoveryProtocolElement
constructor
Creates a new instance of the LinkLayerDiscoveryProtocolElement class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#oui ⇒ Integer
Returns the value of the
ouiattribute. -
#oui=(value) ⇒ Object
Sets the value of the
ouiattribute. -
#properties ⇒ Array<Property>
Returns the value of the
propertiesattribute. -
#properties=(list) ⇒ Object
Sets the value of the
propertiesattribute. -
#subtype ⇒ Integer
Returns the value of the
subtypeattribute. -
#subtype=(value) ⇒ Object
Sets the value of the
subtypeattribute. -
#type ⇒ Integer
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ LinkLayerDiscoveryProtocolElement
Creates a new instance of the OvirtSDK4::LinkLayerDiscoveryProtocolElement class.
8918 8919 8920 8921 8922 8923 8924 |
# File 'lib/ovirtsdk4/types.rb', line 8918 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.
8929 8930 8931 8932 8933 8934 8935 |
# File 'lib/ovirtsdk4/types.rb', line 8929 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.
8747 8748 8749 |
# File 'lib/ovirtsdk4/types.rb', line 8747 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
8756 8757 8758 |
# File 'lib/ovirtsdk4/types.rb', line 8756 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
8765 8766 8767 |
# File 'lib/ovirtsdk4/types.rb', line 8765 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
8774 8775 8776 |
# File 'lib/ovirtsdk4/types.rb', line 8774 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
8940 8941 8942 8943 8944 8945 8946 |
# File 'lib/ovirtsdk4/types.rb', line 8940 def hash super + @oui.hash + @properties.hash + @subtype.hash + @type.hash end |
#id ⇒ String
Returns the value of the id attribute.
8783 8784 8785 |
# File 'lib/ovirtsdk4/types.rb', line 8783 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
8792 8793 8794 |
# File 'lib/ovirtsdk4/types.rb', line 8792 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
8801 8802 8803 |
# File 'lib/ovirtsdk4/types.rb', line 8801 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
8810 8811 8812 |
# File 'lib/ovirtsdk4/types.rb', line 8810 def name=(value) @name = value end |
#oui ⇒ Integer
Returns the value of the oui attribute.
8819 8820 8821 |
# File 'lib/ovirtsdk4/types.rb', line 8819 def oui @oui end |
#oui=(value) ⇒ Object
Sets the value of the oui attribute.
8828 8829 8830 |
# File 'lib/ovirtsdk4/types.rb', line 8828 def oui=(value) @oui = value end |
#properties ⇒ Array<Property>
Returns the value of the properties attribute.
8837 8838 8839 |
# File 'lib/ovirtsdk4/types.rb', line 8837 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties attribute.
8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 |
# File 'lib/ovirtsdk4/types.rb', line 8846 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.
8863 8864 8865 |
# File 'lib/ovirtsdk4/types.rb', line 8863 def subtype @subtype end |
#subtype=(value) ⇒ Object
Sets the value of the subtype attribute.
8872 8873 8874 |
# File 'lib/ovirtsdk4/types.rb', line 8872 def subtype=(value) @subtype = value end |
#type ⇒ Integer
Returns the value of the type attribute.
8881 8882 8883 |
# File 'lib/ovirtsdk4/types.rb', line 8881 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
8890 8891 8892 |
# File 'lib/ovirtsdk4/types.rb', line 8890 def type=(value) @type = value end |