Class: OvirtSDK4::Spm

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Spm

Creates a new instance of the OvirtSDK4::Spm class.

Options Hash (opts):

  • :priority (Integer)

    The value of attribute priority.

  • :status (SpmStatus)

    The value of attribute status.



19813
19814
19815
19816
19817
# File 'lib/ovirtsdk4/types.rb', line 19813

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.



19822
19823
19824
19825
19826
# File 'lib/ovirtsdk4/types.rb', line 19822

def ==(other)
  super &&
  @priority == other.priority &&
  @status == other.status
end

#hashObject

Generates a hash value for this object.



19831
19832
19833
19834
19835
# File 'lib/ovirtsdk4/types.rb', line 19831

def hash
  super +
  @priority.hash +
  @status.hash
end

#priorityInteger

Returns the value of the priority attribute.



19770
19771
19772
# File 'lib/ovirtsdk4/types.rb', line 19770

def priority
  @priority
end

#priority=(value) ⇒ Object

Sets the value of the priority attribute.



19779
19780
19781
# File 'lib/ovirtsdk4/types.rb', line 19779

def priority=(value)
  @priority = value
end

#statusSpmStatus

Returns the value of the status attribute.



19788
19789
19790
# File 'lib/ovirtsdk4/types.rb', line 19788

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.



19797
19798
19799
# File 'lib/ovirtsdk4/types.rb', line 19797

def status=(value)
  @status = value
end