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.

Options Hash (opts):



3761
3762
3763
3764
# File 'lib/ovirtsdk4/types.rb', line 3761

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.



3769
3770
3771
3772
# File 'lib/ovirtsdk4/types.rb', line 3769

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

#hashObject

Generates a hash value for this object.



3777
3778
3779
3780
# File 'lib/ovirtsdk4/types.rb', line 3777

def hash
  super +
  @on_error.hash
end

#on_errorMigrateOnError

Returns the value of the on_error attribute.



3738
3739
3740
# File 'lib/ovirtsdk4/types.rb', line 3738

def on_error
  @on_error
end

#on_error=(value) ⇒ Object

Sets the value of the on_error attribute.



3747
3748
3749
# File 'lib/ovirtsdk4/types.rb', line 3747

def on_error=(value)
  @on_error = value
end