Class: OvirtSDK4::MigrationBandwidth
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#assignment_method ⇒ MigrationBandwidthAssignmentMethod
Returns the value of the
assignment_method
attribute. -
#assignment_method=(value) ⇒ Object
Sets the value of the
assignment_method
attribute. -
#custom_value ⇒ Integer
Returns the value of the
custom_value
attribute. -
#custom_value=(value) ⇒ Object
Sets the value of the
custom_value
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ MigrationBandwidth
constructor
Creates a new instance of the MigrationBandwidth class.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ MigrationBandwidth
Creates a new instance of the OvirtSDK4::MigrationBandwidth class.
9332 9333 9334 9335 9336 |
# File 'lib/ovirtsdk4/types.rb', line 9332 def initialize(opts = {}) super(opts) self.assignment_method = opts[:assignment_method] self.custom_value = opts[:custom_value] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
9341 9342 9343 9344 9345 |
# File 'lib/ovirtsdk4/types.rb', line 9341 def ==(other) super && @assignment_method == other.assignment_method && @custom_value == other.custom_value end |
#assignment_method ⇒ MigrationBandwidthAssignmentMethod
Returns the value of the assignment_method
attribute.
9289 9290 9291 |
# File 'lib/ovirtsdk4/types.rb', line 9289 def assignment_method @assignment_method end |
#assignment_method=(value) ⇒ Object
Sets the value of the assignment_method
attribute.
9298 9299 9300 |
# File 'lib/ovirtsdk4/types.rb', line 9298 def assignment_method=(value) @assignment_method = value end |
#custom_value ⇒ Integer
Returns the value of the custom_value
attribute.
9307 9308 9309 |
# File 'lib/ovirtsdk4/types.rb', line 9307 def custom_value @custom_value end |
#custom_value=(value) ⇒ Object
Sets the value of the custom_value
attribute.
9316 9317 9318 |
# File 'lib/ovirtsdk4/types.rb', line 9316 def custom_value=(value) @custom_value = value end |
#hash ⇒ Object
Generates a hash value for this object.
9350 9351 9352 9353 9354 |
# File 'lib/ovirtsdk4/types.rb', line 9350 def hash super + @assignment_method.hash + @custom_value.hash end |