Class: OvirtSDK4::Fault
- 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. -
#detail ⇒ String
Returns the value of the
detail
attribute. -
#detail=(value) ⇒ Object
Sets the value of the
detail
attribute. -
#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
reason
attribute. -
#reason=(value) ⇒ Object
Sets the value of the
reason
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Fault
Creates a new instance of the OvirtSDK4::Fault class.
3825 3826 3827 3828 3829 |
# File 'lib/ovirtsdk4/types.rb', line 3825 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.
3834 3835 3836 3837 3838 |
# File 'lib/ovirtsdk4/types.rb', line 3834 def ==(other) super && @detail == other.detail && @reason == other.reason end |
#detail ⇒ String
Returns the value of the detail
attribute.
3782 3783 3784 |
# File 'lib/ovirtsdk4/types.rb', line 3782 def detail @detail end |
#detail=(value) ⇒ Object
Sets the value of the detail
attribute.
3791 3792 3793 |
# File 'lib/ovirtsdk4/types.rb', line 3791 def detail=(value) @detail = value end |
#hash ⇒ Object
Generates a hash value for this object.
3843 3844 3845 3846 3847 |
# File 'lib/ovirtsdk4/types.rb', line 3843 def hash super + @detail.hash + @reason.hash end |
#reason ⇒ String
Returns the value of the reason
attribute.
3800 3801 3802 |
# File 'lib/ovirtsdk4/types.rb', line 3800 def reason @reason end |
#reason=(value) ⇒ Object
Sets the value of the reason
attribute.
3809 3810 3811 |
# File 'lib/ovirtsdk4/types.rb', line 3809 def reason=(value) @reason = value end |