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.
8153 8154 8155 8156 8157 8158 8159 |
# File 'lib/ovirtsdk4/types.rb', line 8153 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.
8164 8165 8166 8167 8168 8169 8170 |
# File 'lib/ovirtsdk4/types.rb', line 8164 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.
7982 7983 7984 |
# File 'lib/ovirtsdk4/types.rb', line 7982 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
7991 7992 7993 |
# File 'lib/ovirtsdk4/types.rb', line 7991 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
8000 8001 8002 |
# File 'lib/ovirtsdk4/types.rb', line 8000 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
8009 8010 8011 |
# File 'lib/ovirtsdk4/types.rb', line 8009 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
8175 8176 8177 8178 8179 8180 8181 |
# File 'lib/ovirtsdk4/types.rb', line 8175 def hash super + @oui.hash + @properties.hash + @subtype.hash + @type.hash end |
#id ⇒ String
Returns the value of the id
attribute.
8018 8019 8020 |
# File 'lib/ovirtsdk4/types.rb', line 8018 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
8027 8028 8029 |
# File 'lib/ovirtsdk4/types.rb', line 8027 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
8036 8037 8038 |
# File 'lib/ovirtsdk4/types.rb', line 8036 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
8045 8046 8047 |
# File 'lib/ovirtsdk4/types.rb', line 8045 def name=(value) @name = value end |
#oui ⇒ Integer
Returns the value of the oui
attribute.
8054 8055 8056 |
# File 'lib/ovirtsdk4/types.rb', line 8054 def oui @oui end |
#oui=(value) ⇒ Object
Sets the value of the oui
attribute.
8063 8064 8065 |
# File 'lib/ovirtsdk4/types.rb', line 8063 def oui=(value) @oui = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
8072 8073 8074 |
# File 'lib/ovirtsdk4/types.rb', line 8072 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 |
# File 'lib/ovirtsdk4/types.rb', line 8081 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.
8098 8099 8100 |
# File 'lib/ovirtsdk4/types.rb', line 8098 def subtype @subtype end |
#subtype=(value) ⇒ Object
Sets the value of the subtype
attribute.
8107 8108 8109 |
# File 'lib/ovirtsdk4/types.rb', line 8107 def subtype=(value) @subtype = value end |
#type ⇒ Integer
Returns the value of the type
attribute.
8116 8117 8118 |
# File 'lib/ovirtsdk4/types.rb', line 8116 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
8125 8126 8127 |
# File 'lib/ovirtsdk4/types.rb', line 8125 def type=(value) @type = value end |