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.
8176 8177 8178 8179 8180 8181 8182 |
# File 'lib/ovirtsdk4/types.rb', line 8176 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.
8187 8188 8189 8190 8191 8192 8193 |
# File 'lib/ovirtsdk4/types.rb', line 8187 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.
8005 8006 8007 |
# File 'lib/ovirtsdk4/types.rb', line 8005 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
8014 8015 8016 |
# File 'lib/ovirtsdk4/types.rb', line 8014 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
8023 8024 8025 |
# File 'lib/ovirtsdk4/types.rb', line 8023 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
8032 8033 8034 |
# File 'lib/ovirtsdk4/types.rb', line 8032 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
8198 8199 8200 8201 8202 8203 8204 |
# File 'lib/ovirtsdk4/types.rb', line 8198 def hash super + @oui.hash + @properties.hash + @subtype.hash + @type.hash end |
#id ⇒ String
Returns the value of the id
attribute.
8041 8042 8043 |
# File 'lib/ovirtsdk4/types.rb', line 8041 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
8050 8051 8052 |
# File 'lib/ovirtsdk4/types.rb', line 8050 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
8059 8060 8061 |
# File 'lib/ovirtsdk4/types.rb', line 8059 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
8068 8069 8070 |
# File 'lib/ovirtsdk4/types.rb', line 8068 def name=(value) @name = value end |
#oui ⇒ Integer
Returns the value of the oui
attribute.
8077 8078 8079 |
# File 'lib/ovirtsdk4/types.rb', line 8077 def oui @oui end |
#oui=(value) ⇒ Object
Sets the value of the oui
attribute.
8086 8087 8088 |
# File 'lib/ovirtsdk4/types.rb', line 8086 def oui=(value) @oui = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
8095 8096 8097 |
# File 'lib/ovirtsdk4/types.rb', line 8095 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 |
# File 'lib/ovirtsdk4/types.rb', line 8104 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.
8121 8122 8123 |
# File 'lib/ovirtsdk4/types.rb', line 8121 def subtype @subtype end |
#subtype=(value) ⇒ Object
Sets the value of the subtype
attribute.
8130 8131 8132 |
# File 'lib/ovirtsdk4/types.rb', line 8130 def subtype=(value) @subtype = value end |
#type ⇒ Integer
Returns the value of the type
attribute.
8139 8140 8141 |
# File 'lib/ovirtsdk4/types.rb', line 8139 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
8148 8149 8150 |
# File 'lib/ovirtsdk4/types.rb', line 8148 def type=(value) @type = value end |