class OvirtSDK4::MigrationBandwidth
Public Class Methods
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`.
OvirtSDK4::Struct::new
# File lib/ovirtsdk4/types.rb, line 9437 def initialize(opts = {}) super(opts) self.assignment_method = opts[:assignment_method] self.custom_value = opts[:custom_value] end
Public Instance Methods
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 9446 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 9394 def assignment_method @assignment_method end
Sets the value of the `assignment_method` attribute.
@param value [MigrationBandwidthAssignmentMethod]
# File lib/ovirtsdk4/types.rb, line 9403 def assignment_method=(value) @assignment_method = value end
Returns the value of the `custom_value` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 9412 def custom_value @custom_value end
Sets the value of the `custom_value` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 9421 def custom_value=(value) @custom_value = value end
Generates a hash value for this object.
OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 9455 def hash super + @assignment_method.hash + @custom_value.hash end