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.
25039 25040 25041 25042 |
# File 'lib/ovirtsdk4/types.rb', line 25039 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.
25047 25048 25049 25050 |
# File 'lib/ovirtsdk4/types.rb', line 25047 def ==(other) super && @id == other.id end |
#hash ⇒ Object
Generates a hash value for this object.
25055 25056 25057 25058 |
# File 'lib/ovirtsdk4/types.rb', line 25055 def hash super + @id.hash end |
#id ⇒ Integer
Returns the value of the id
attribute.
25016 25017 25018 |
# File 'lib/ovirtsdk4/types.rb', line 25016 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
25025 25026 25027 |
# File 'lib/ovirtsdk4/types.rb', line 25025 def id=(value) @id = value end |