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.
19340 19341 19342 19343 19344 |
# File 'lib/ovirtsdk4/types.rb', line 19340 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.
19349 19350 19351 19352 19353 |
# File 'lib/ovirtsdk4/types.rb', line 19349 def ==(other) super && @priority == other.priority && @status == other.status end |
#hash ⇒ Object
Generates a hash value for this object.
19358 19359 19360 19361 19362 |
# File 'lib/ovirtsdk4/types.rb', line 19358 def hash super + @priority.hash + @status.hash end |
#priority ⇒ Integer
Returns the value of the priority
attribute.
19297 19298 19299 |
# File 'lib/ovirtsdk4/types.rb', line 19297 def priority @priority end |
#priority=(value) ⇒ Object
Sets the value of the priority
attribute.
19306 19307 19308 |
# File 'lib/ovirtsdk4/types.rb', line 19306 def priority=(value) @priority = value end |
#status ⇒ SpmStatus
Returns the value of the status
attribute.
19315 19316 19317 |
# File 'lib/ovirtsdk4/types.rb', line 19315 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
19324 19325 19326 |
# File 'lib/ovirtsdk4/types.rb', line 19324 def status=(value) @status = value end |