Class: OvirtSDK4::Spm
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Spm
constructor
Creates a new instance of the Spm class.
-
#priority ⇒ Integer
Returns the value of the
priorityattribute. -
#priority=(value) ⇒ Object
Sets the value of the
priorityattribute. -
#status ⇒ SpmStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Spm
Creates a new instance of the OvirtSDK4::Spm class.
20083 20084 20085 20086 20087 |
# File 'lib/ovirtsdk4/types.rb', line 20083 def initialize(opts = {}) super(opts) self.priority = opts[:priority] self.status = opts[:status] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
20092 20093 20094 20095 20096 |
# File 'lib/ovirtsdk4/types.rb', line 20092 def ==(other) super && @priority == other.priority && @status == other.status end |
#hash ⇒ Object
Generates a hash value for this object.
20101 20102 20103 20104 20105 |
# File 'lib/ovirtsdk4/types.rb', line 20101 def hash super + @priority.hash + @status.hash end |
#priority ⇒ Integer
Returns the value of the priority attribute.
20040 20041 20042 |
# File 'lib/ovirtsdk4/types.rb', line 20040 def priority @priority end |
#priority=(value) ⇒ Object
Sets the value of the priority attribute.
20049 20050 20051 |
# File 'lib/ovirtsdk4/types.rb', line 20049 def priority=(value) @priority = value end |
#status ⇒ SpmStatus
Returns the value of the status attribute.
20058 20059 20060 |
# File 'lib/ovirtsdk4/types.rb', line 20058 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
20067 20068 20069 |
# File 'lib/ovirtsdk4/types.rb', line 20067 def status=(value) @status = value end |