Class: OvirtSDK4::VnicPassThrough

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ VnicPassThrough

Creates a new instance of the OvirtSDK4::VnicPassThrough class.

Options Hash (opts):



26294
26295
26296
26297
# File 'lib/ovirtsdk4/types.rb', line 26294

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.



26302
26303
26304
26305
# File 'lib/ovirtsdk4/types.rb', line 26302

def ==(other)
  super &&
  @mode == other.mode
end

#hashObject

Generates a hash value for this object.



26310
26311
26312
26313
# File 'lib/ovirtsdk4/types.rb', line 26310

def hash
  super +
  @mode.hash
end

#modeVnicPassThroughMode

Returns the value of the mode attribute.



26271
26272
26273
# File 'lib/ovirtsdk4/types.rb', line 26271

def mode
  @mode
end

#mode=(value) ⇒ Object

Sets the value of the mode attribute.



26280
26281
26282
# File 'lib/ovirtsdk4/types.rb', line 26280

def mode=(value)
  @mode = value
end