Class: OvirtSDK4::ErrorHandling

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 = {}) ⇒ ErrorHandling

Creates a new instance of the OvirtSDK4::ErrorHandling 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):


3406
3407
3408
3409
# File 'lib/ovirtsdk4/types.rb', line 3406

def initialize(opts = {})
  super(opts)
  self.on_error = opts[:on_error]
end

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.


3414
3415
3416
3417
# File 'lib/ovirtsdk4/types.rb', line 3414

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

#hashObject

Generates a hash value for this object.


3422
3423
3424
3425
# File 'lib/ovirtsdk4/types.rb', line 3422

def hash
  super +
  @on_error.hash
end

#on_errorMigrateOnError

Returns the value of the on_error attribute.

Returns:


3383
3384
3385
# File 'lib/ovirtsdk4/types.rb', line 3383

def on_error
  @on_error
end

#on_error=(value) ⇒ Object

Sets the value of the on_error attribute.

Parameters:


3392
3393
3394
# File 'lib/ovirtsdk4/types.rb', line 3392

def on_error=(value)
  @on_error = value
end