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.
18935 18936 18937 18938 18939 |
# File 'lib/ovirtsdk4/types.rb', line 18935 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.
18944 18945 18946 18947 18948 |
# File 'lib/ovirtsdk4/types.rb', line 18944 def ==(other) super && @priority == other.priority && @status == other.status end |
#hash ⇒ Object
Generates a hash value for this object.
18953 18954 18955 18956 18957 |
# File 'lib/ovirtsdk4/types.rb', line 18953 def hash super + @priority.hash + @status.hash end |
#priority ⇒ Integer
Returns the value of the priority
attribute.
18892 18893 18894 |
# File 'lib/ovirtsdk4/types.rb', line 18892 def priority @priority end |
#priority=(value) ⇒ Object
Sets the value of the priority
attribute.
18901 18902 18903 |
# File 'lib/ovirtsdk4/types.rb', line 18901 def priority=(value) @priority = value end |
#status ⇒ SpmStatus
Returns the value of the status
attribute.
18910 18911 18912 |
# File 'lib/ovirtsdk4/types.rb', line 18910 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
18919 18920 18921 |
# File 'lib/ovirtsdk4/types.rb', line 18919 def status=(value) @status = value end |