Class: OvirtSDK4::Spm
- 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 = {}) ⇒ Spm
constructor
Creates a new instance of the Spm class.
-
#priority ⇒ Integer
Returns the value of the
priority
attribute. -
#priority=(value) ⇒ Object
Sets the value of the
priority
attribute. -
#status ⇒ SpmStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Spm
Creates a new instance of the OvirtSDK4::Spm class.
18811 18812 18813 18814 18815 |
# File 'lib/ovirtsdk4/types.rb', line 18811 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.
18820 18821 18822 18823 18824 |
# File 'lib/ovirtsdk4/types.rb', line 18820 def ==(other) super && @priority == other.priority && @status == other.status end |
#hash ⇒ Object
Generates a hash value for this object.
18829 18830 18831 18832 18833 |
# File 'lib/ovirtsdk4/types.rb', line 18829 def hash super + @priority.hash + @status.hash end |
#priority ⇒ Integer
Returns the value of the priority
attribute.
18768 18769 18770 |
# File 'lib/ovirtsdk4/types.rb', line 18768 def priority @priority end |
#priority=(value) ⇒ Object
Sets the value of the priority
attribute.
18777 18778 18779 |
# File 'lib/ovirtsdk4/types.rb', line 18777 def priority=(value) @priority = value end |
#status ⇒ SpmStatus
Returns the value of the status
attribute.
18786 18787 18788 |
# File 'lib/ovirtsdk4/types.rb', line 18786 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
18795 18796 18797 |
# File 'lib/ovirtsdk4/types.rb', line 18795 def status=(value) @status = value end |