Class: OvirtSDK4::VnicPassThrough
- 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.
-
#initialize(opts = {}) ⇒ VnicPassThrough
constructor
Creates a new instance of the VnicPassThrough class.
-
#mode ⇒ VnicPassThroughMode
Returns the value of the
mode
attribute. -
#mode=(value) ⇒ Object
Sets the value of the
mode
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VnicPassThrough
Creates a new instance of the OvirtSDK4::VnicPassThrough class.
26340 26341 26342 26343 |
# File 'lib/ovirtsdk4/types.rb', line 26340 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.
26348 26349 26350 26351 |
# File 'lib/ovirtsdk4/types.rb', line 26348 def ==(other) super && @mode == other.mode end |
#hash ⇒ Object
Generates a hash value for this object.
26356 26357 26358 26359 |
# File 'lib/ovirtsdk4/types.rb', line 26356 def hash super + @mode.hash end |
#mode ⇒ VnicPassThroughMode
Returns the value of the mode
attribute.
26317 26318 26319 |
# File 'lib/ovirtsdk4/types.rb', line 26317 def mode @mode end |
#mode=(value) ⇒ Object
Sets the value of the mode
attribute.
26326 26327 26328 |
# File 'lib/ovirtsdk4/types.rb', line 26326 def mode=(value) @mode = value end |