Creates a new instance of the {MigrationBandwidth} class.
@param opts [Hash] 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.
@option opts [MigrationBandwidthAssignmentMethod] :assignment_method The value of attribute `assignment_method`.
@option opts [Integer] :custom_value The value of attribute `custom_value`.
# File lib/ovirtsdk4/types.rb, line 8717 def initialize(opts = {}) super(opts) self.assignment_method = opts[:assignment_method] self.custom_value = opts[:custom_value] end
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 8726 def ==(other) super && @assignment_method == other.assignment_method && @custom_value == other.custom_value end
Returns the value of the `assignment_method` attribute.
@return [MigrationBandwidthAssignmentMethod]
# File lib/ovirtsdk4/types.rb, line 8674 def assignment_method @assignment_method end
Sets the value of the `assignment_method` attribute.
@param value [MigrationBandwidthAssignmentMethod]
# File lib/ovirtsdk4/types.rb, line 8683 def assignment_method=(value) @assignment_method = value end
Returns the value of the `custom_value` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 8692 def custom_value @custom_value end
Sets the value of the `custom_value` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 8701 def custom_value=(value) @custom_value = value end
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 8735 def hash super + @assignment_method.hash + @custom_value.hash end