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.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):



26264
26265
26266
26267
# File 'lib/ovirtsdk4/types.rb', line 26264

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.



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

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

#hashObject

Generates a hash value for this object.



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

def hash
  super +
  @mode.hash
end

#modeVnicPassThroughMode

Returns the value of the mode attribute.

Returns:



26241
26242
26243
# File 'lib/ovirtsdk4/types.rb', line 26241

def mode
  @mode
end

#mode=(value) ⇒ Object

Sets the value of the mode attribute.

Parameters:



26250
26251
26252
# File 'lib/ovirtsdk4/types.rb', line 26250

def mode=(value)
  @mode = value
end