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.
25782 25783 25784 25785 |
# File 'lib/ovirtsdk4/types.rb', line 25782 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.
25790 25791 25792 25793 |
# File 'lib/ovirtsdk4/types.rb', line 25790 def ==(other) super && @id == other.id end |
#hash ⇒ Object
Generates a hash value for this object.
25798 25799 25800 25801 |
# File 'lib/ovirtsdk4/types.rb', line 25798 def hash super + @id.hash end |
#id ⇒ Integer
Returns the value of the id attribute.
25759 25760 25761 |
# File 'lib/ovirtsdk4/types.rb', line 25759 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
25768 25769 25770 |
# File 'lib/ovirtsdk4/types.rb', line 25768 def id=(value) @id = value end |