Class: OvirtSDK4::Fault
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#detail ⇒ String
Returns the value of the
detailattribute. -
#detail=(value) ⇒ Object
Sets the value of the
detailattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Fault
constructor
Creates a new instance of the Fault class.
-
#reason ⇒ String
Returns the value of the
reasonattribute. -
#reason=(value) ⇒ Object
Sets the value of the
reasonattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Fault
Creates a new instance of the OvirtSDK4::Fault class.
4468 4469 4470 4471 4472 |
# File 'lib/ovirtsdk4/types.rb', line 4468 def initialize(opts = {}) super(opts) self.detail = opts[:detail] self.reason = opts[:reason] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
4477 4478 4479 4480 4481 |
# File 'lib/ovirtsdk4/types.rb', line 4477 def ==(other) super && @detail == other.detail && @reason == other.reason end |
#detail ⇒ String
Returns the value of the detail attribute.
4425 4426 4427 |
# File 'lib/ovirtsdk4/types.rb', line 4425 def detail @detail end |
#detail=(value) ⇒ Object
Sets the value of the detail attribute.
4434 4435 4436 |
# File 'lib/ovirtsdk4/types.rb', line 4434 def detail=(value) @detail = value end |
#hash ⇒ Object
Generates a hash value for this object.
4486 4487 4488 4489 4490 |
# File 'lib/ovirtsdk4/types.rb', line 4486 def hash super + @detail.hash + @reason.hash end |
#reason ⇒ String
Returns the value of the reason attribute.
4443 4444 4445 |
# File 'lib/ovirtsdk4/types.rb', line 4443 def reason @reason end |
#reason=(value) ⇒ Object
Sets the value of the reason attribute.
4452 4453 4454 |
# File 'lib/ovirtsdk4/types.rb', line 4452 def reason=(value) @reason = value end |