Class: OvirtSDK4::VnicPassThrough
- 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.
-
#initialize(opts = {}) ⇒ VnicPassThrough
constructor
Creates a new instance of the VnicPassThrough class.
-
#mode ⇒ VnicPassThroughMode
Returns the value of the
modeattribute. -
#mode=(value) ⇒ Object
Sets the value of the
modeattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VnicPassThrough
Creates a new instance of the OvirtSDK4::VnicPassThrough class.
27927 27928 27929 27930 |
# File 'lib/ovirtsdk4/types.rb', line 27927 def initialize(opts = {}) super(opts) self.mode = opts[:mode] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
27935 27936 27937 27938 |
# File 'lib/ovirtsdk4/types.rb', line 27935 def ==(other) super && @mode == other.mode end |
#hash ⇒ Object
Generates a hash value for this object.
27943 27944 27945 27946 |
# File 'lib/ovirtsdk4/types.rb', line 27943 def hash super + @mode.hash end |
#mode ⇒ VnicPassThroughMode
Returns the value of the mode attribute.
27904 27905 27906 |
# File 'lib/ovirtsdk4/types.rb', line 27904 def mode @mode end |
#mode=(value) ⇒ Object
Sets the value of the mode attribute.
27913 27914 27915 |
# File 'lib/ovirtsdk4/types.rb', line 27913 def mode=(value) @mode = value end |