Class: OvirtSDK4::MigrationBandwidth
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#assignment_method ⇒ MigrationBandwidthAssignmentMethod
Returns the value of the
assignment_methodattribute. -
#assignment_method=(value) ⇒ Object
Sets the value of the
assignment_methodattribute. -
#custom_value ⇒ Integer
Returns the value of the
custom_valueattribute. -
#custom_value=(value) ⇒ Object
Sets the value of the
custom_valueattribute. -
#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.
10148 10149 10150 10151 10152 |
# File 'lib/ovirtsdk4/types.rb', line 10148 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.
10157 10158 10159 10160 10161 |
# File 'lib/ovirtsdk4/types.rb', line 10157 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.
10105 10106 10107 |
# File 'lib/ovirtsdk4/types.rb', line 10105 def assignment_method @assignment_method end |
#assignment_method=(value) ⇒ Object
Sets the value of the assignment_method attribute.
10114 10115 10116 |
# File 'lib/ovirtsdk4/types.rb', line 10114 def assignment_method=(value) @assignment_method = value end |
#custom_value ⇒ Integer
Returns the value of the custom_value attribute.
10123 10124 10125 |
# File 'lib/ovirtsdk4/types.rb', line 10123 def custom_value @custom_value end |
#custom_value=(value) ⇒ Object
Sets the value of the custom_value attribute.
10132 10133 10134 |
# File 'lib/ovirtsdk4/types.rb', line 10132 def custom_value=(value) @custom_value = value end |
#hash ⇒ Object
Generates a hash value for this object.
10166 10167 10168 10169 10170 |
# File 'lib/ovirtsdk4/types.rb', line 10166 def hash super + @assignment_method.hash + @custom_value.hash end |