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.
8313 8314 8315 8316 8317 8318 8319 |
# File 'lib/ovirtsdk4/types.rb', line 8313 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.
8324 8325 8326 8327 8328 8329 8330 |
# File 'lib/ovirtsdk4/types.rb', line 8324 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.
8142 8143 8144 |
# File 'lib/ovirtsdk4/types.rb', line 8142 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
8151 8152 8153 |
# File 'lib/ovirtsdk4/types.rb', line 8151 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
8160 8161 8162 |
# File 'lib/ovirtsdk4/types.rb', line 8160 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
8169 8170 8171 |
# File 'lib/ovirtsdk4/types.rb', line 8169 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
8335 8336 8337 8338 8339 8340 8341 |
# File 'lib/ovirtsdk4/types.rb', line 8335 def hash super + @oui.hash + @properties.hash + @subtype.hash + @type.hash end |
#id ⇒ String
Returns the value of the id
attribute.
8178 8179 8180 |
# File 'lib/ovirtsdk4/types.rb', line 8178 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
8187 8188 8189 |
# File 'lib/ovirtsdk4/types.rb', line 8187 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
8196 8197 8198 |
# File 'lib/ovirtsdk4/types.rb', line 8196 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
8205 8206 8207 |
# File 'lib/ovirtsdk4/types.rb', line 8205 def name=(value) @name = value end |
#oui ⇒ Integer
Returns the value of the oui
attribute.
8214 8215 8216 |
# File 'lib/ovirtsdk4/types.rb', line 8214 def oui @oui end |
#oui=(value) ⇒ Object
Sets the value of the oui
attribute.
8223 8224 8225 |
# File 'lib/ovirtsdk4/types.rb', line 8223 def oui=(value) @oui = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
8232 8233 8234 |
# File 'lib/ovirtsdk4/types.rb', line 8232 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 |
# File 'lib/ovirtsdk4/types.rb', line 8241 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.
8258 8259 8260 |
# File 'lib/ovirtsdk4/types.rb', line 8258 def subtype @subtype end |
#subtype=(value) ⇒ Object
Sets the value of the subtype
attribute.
8267 8268 8269 |
# File 'lib/ovirtsdk4/types.rb', line 8267 def subtype=(value) @subtype = value end |
#type ⇒ Integer
Returns the value of the type
attribute.
8276 8277 8278 |
# File 'lib/ovirtsdk4/types.rb', line 8276 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
8285 8286 8287 |
# File 'lib/ovirtsdk4/types.rb', line 8285 def type=(value) @type = value end |