Class: OvirtSDK4::Vlan
- 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. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ Integer
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#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.
25512 25513 25514 25515 |
# File 'lib/ovirtsdk4/types.rb', line 25512 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.
25520 25521 25522 25523 |
# File 'lib/ovirtsdk4/types.rb', line 25520 def ==(other) super && @id == other.id end |
#hash ⇒ Object
Generates a hash value for this object.
25528 25529 25530 25531 |
# File 'lib/ovirtsdk4/types.rb', line 25528 def hash super + @id.hash end |
#id ⇒ Integer
Returns the value of the id
attribute.
25489 25490 25491 |
# File 'lib/ovirtsdk4/types.rb', line 25489 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
25498 25499 25500 |
# File 'lib/ovirtsdk4/types.rb', line 25498 def id=(value) @id = value end |