Class: OvirtSDK4::VmSummary

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

- (VmSummary) initialize(opts = {})

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

  • :active (Integer)

    The value of attribute active.

  • :migrating (Integer)

    The value of attribute migrating.

  • :total (Integer)

    The value of attribute total.



20195
20196
20197
20198
20199
20200
# File 'lib/ovirtsdk4/types.rb', line 20195

def initialize(opts = {})
  super(opts)
  self.active = opts[:active]
  self.migrating = opts[:migrating]
  self.total = opts[:total]
end

Instance Method Details

- (Integer) active

Returns the value of the active attribute.

Returns:

  • (Integer)


20132
20133
20134
# File 'lib/ovirtsdk4/types.rb', line 20132

def active
  return @active
end

- (Object) active=(value)

Sets the value of the active attribute.

Parameters:

  • value (Integer)


20141
20142
20143
# File 'lib/ovirtsdk4/types.rb', line 20141

def active=(value)
  @active = value
end

- (Integer) migrating

Returns the value of the migrating attribute.

Returns:

  • (Integer)


20150
20151
20152
# File 'lib/ovirtsdk4/types.rb', line 20150

def migrating
  return @migrating
end

- (Object) migrating=(value)

Sets the value of the migrating attribute.

Parameters:

  • value (Integer)


20159
20160
20161
# File 'lib/ovirtsdk4/types.rb', line 20159

def migrating=(value)
  @migrating = value
end

- (Integer) total

Returns the value of the total attribute.

Returns:

  • (Integer)


20168
20169
20170
# File 'lib/ovirtsdk4/types.rb', line 20168

def total
  return @total
end

- (Object) total=(value)

Sets the value of the total attribute.

Parameters:

  • value (Integer)


20177
20178
20179
# File 'lib/ovirtsdk4/types.rb', line 20177

def total=(value)
  @total = value
end