Class: OvirtSDK4::PmProxy

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 = {}) ⇒ PmProxy

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

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):



13850
13851
13852
13853
# File 'lib/ovirtsdk4/types.rb', line 13850

def initialize(opts = {})
  super(opts)
  self.type = opts[:type]
end

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.



13858
13859
13860
13861
# File 'lib/ovirtsdk4/types.rb', line 13858

def ==(other)
  super &&
  @type == other.type
end

#hashObject

Generates a hash value for this object.



13866
13867
13868
13869
# File 'lib/ovirtsdk4/types.rb', line 13866

def hash
  super +
  @type.hash
end

#typePmProxyType

Returns the value of the type attribute.

Returns:



13827
13828
13829
# File 'lib/ovirtsdk4/types.rb', line 13827

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



13836
13837
13838
# File 'lib/ovirtsdk4/types.rb', line 13836

def type=(value)
  @type = value
end