Class: OvirtSDK4::Rate

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

- (Rate) initialize(opts = {})

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

  • :bytes (Integer)

    The value of attribute bytes.

  • :period (Integer)

    The value of attribute period.



12563
12564
12565
12566
12567
# File 'lib/ovirtsdk4/types.rb', line 12563

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

Instance Method Details

- (Integer) bytes

Returns the value of the bytes attribute.

Returns:

  • (Integer)


12520
12521
12522
# File 'lib/ovirtsdk4/types.rb', line 12520

def bytes
  return @bytes
end

- (Object) bytes=(value)

Sets the value of the bytes attribute.

Parameters:

  • value (Integer)


12529
12530
12531
# File 'lib/ovirtsdk4/types.rb', line 12529

def bytes=(value)
  @bytes = value
end

- (Integer) period

Returns the value of the period attribute.

Returns:

  • (Integer)


12538
12539
12540
# File 'lib/ovirtsdk4/types.rb', line 12538

def period
  return @period
end

- (Object) period=(value)

Sets the value of the period attribute.

Parameters:

  • value (Integer)


12547
12548
12549
# File 'lib/ovirtsdk4/types.rb', line 12547

def period=(value)
  @period = value
end