Class: OvirtSDK4::MemoryOverCommit

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

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (MemoryOverCommit) initialize(opts = {})

Creates a new instance of the OvirtSDK4::MemoryOverCommit 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):

  • :percent (Integer)

    The value of attribute percent.



6382
6383
6384
6385
# File 'lib/ovirtsdk4/types.rb', line 6382

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

Instance Method Details

- (Integer) percent

Returns the value of the percent attribute.

Returns:

  • (Integer)


6359
6360
6361
# File 'lib/ovirtsdk4/types.rb', line 6359

def percent
  return @percent
end

- (Object) percent=(value)

Sets the value of the percent attribute.

Parameters:

  • value (Integer)


6368
6369
6370
# File 'lib/ovirtsdk4/types.rb', line 6368

def percent=(value)
  @percent = value
end