Class: OvirtSDK4::ApiSummaryItem

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

- (ApiSummaryItem) initialize(opts = {})

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

  • :total (Integer)

    The value of attribute total.



1034
1035
1036
1037
1038
# File 'lib/ovirtsdk4/types.rb', line 1034

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

Instance Method Details

- (Integer) active

Returns the value of the active attribute.

Returns:

  • (Integer)


991
992
993
# File 'lib/ovirtsdk4/types.rb', line 991

def active
  return @active
end

- (Object) active=(value)

Sets the value of the active attribute.

Parameters:

  • value (Integer)


1000
1001
1002
# File 'lib/ovirtsdk4/types.rb', line 1000

def active=(value)
  @active = value
end

- (Integer) total

Returns the value of the total attribute.

Returns:

  • (Integer)


1009
1010
1011
# File 'lib/ovirtsdk4/types.rb', line 1009

def total
  return @total
end

- (Object) total=(value)

Sets the value of the total attribute.

Parameters:

  • value (Integer)


1018
1019
1020
# File 'lib/ovirtsdk4/types.rb', line 1018

def total=(value)
  @total = value
end