Class: OvirtSDK4::ErrorHandling
- 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 = {}) ⇒ ErrorHandling
constructor
Creates a new instance of the ErrorHandling class.
-
#on_error ⇒ MigrateOnError
Returns the value of the
on_error
attribute. -
#on_error=(value) ⇒ Object
Sets the value of the
on_error
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ErrorHandling
Creates a new instance of the OvirtSDK4::ErrorHandling class.
3537 3538 3539 3540 |
# File 'lib/ovirtsdk4/types.rb', line 3537 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.
3545 3546 3547 3548 |
# File 'lib/ovirtsdk4/types.rb', line 3545 def ==(other) super && @on_error == other.on_error end |
#hash ⇒ Object
Generates a hash value for this object.
3553 3554 3555 3556 |
# File 'lib/ovirtsdk4/types.rb', line 3553 def hash super + @on_error.hash end |
#on_error ⇒ MigrateOnError
Returns the value of the on_error
attribute.
3514 3515 3516 |
# File 'lib/ovirtsdk4/types.rb', line 3514 def on_error @on_error end |
#on_error=(value) ⇒ Object
Sets the value of the on_error
attribute.
3523 3524 3525 |
# File 'lib/ovirtsdk4/types.rb', line 3523 def on_error=(value) @on_error = value end |