Class: OvirtSDK4::Vlan
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ Integer
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ Vlan
constructor
Creates a new instance of the Vlan class.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Vlan
Creates a new instance of the OvirtSDK4::Vlan class.
24310 24311 24312 24313 |
# File 'lib/ovirtsdk4/types.rb', line 24310 def initialize(opts = {}) super(opts) self.id = opts[:id] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
24318 24319 24320 24321 |
# File 'lib/ovirtsdk4/types.rb', line 24318 def ==(other) super && @id == other.id end |
#hash ⇒ Object
Generates a hash value for this object.
24326 24327 24328 24329 |
# File 'lib/ovirtsdk4/types.rb', line 24326 def hash super + @id.hash end |
#id ⇒ Integer
Returns the value of the id attribute.
24287 24288 24289 |
# File 'lib/ovirtsdk4/types.rb', line 24287 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
24296 24297 24298 |
# File 'lib/ovirtsdk4/types.rb', line 24296 def id=(value) @id = value end |