Class: OvirtSDK4::AffinityRule
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Overview
These forward declarations are required in order to avoid circular dependencies.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#enabled ⇒ Boolean
Returns the value of the
enabledattribute. -
#enabled=(value) ⇒ Object
Sets the value of the
enabledattribute. -
#enforcing ⇒ Boolean
Returns the value of the
enforcingattribute. -
#enforcing=(value) ⇒ Object
Sets the value of the
enforcingattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ AffinityRule
constructor
Creates a new instance of the AffinityRule class.
-
#positive ⇒ Boolean
Returns the value of the
positiveattribute. -
#positive=(value) ⇒ Object
Sets the value of the
positiveattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ AffinityRule
Creates a new instance of the OvirtSDK4::AffinityRule class.
753 754 755 756 757 758 |
# File 'lib/ovirtsdk4/types.rb', line 753 def initialize(opts = {}) super(opts) self.enabled = opts[:enabled] self.enforcing = opts[:enforcing] self.positive = opts[:positive] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
763 764 765 766 767 768 |
# File 'lib/ovirtsdk4/types.rb', line 763 def ==(other) super && @enabled == other.enabled && @enforcing == other.enforcing && @positive == other.positive end |
#enabled ⇒ Boolean
Returns the value of the enabled attribute.
690 691 692 |
# File 'lib/ovirtsdk4/types.rb', line 690 def enabled @enabled end |
#enabled=(value) ⇒ Object
Sets the value of the enabled attribute.
699 700 701 |
# File 'lib/ovirtsdk4/types.rb', line 699 def enabled=(value) @enabled = value end |
#enforcing ⇒ Boolean
Returns the value of the enforcing attribute.
708 709 710 |
# File 'lib/ovirtsdk4/types.rb', line 708 def enforcing @enforcing end |
#enforcing=(value) ⇒ Object
Sets the value of the enforcing attribute.
717 718 719 |
# File 'lib/ovirtsdk4/types.rb', line 717 def enforcing=(value) @enforcing = value end |
#hash ⇒ Object
Generates a hash value for this object.
773 774 775 776 777 778 |
# File 'lib/ovirtsdk4/types.rb', line 773 def hash super + @enabled.hash + @enforcing.hash + @positive.hash end |
#positive ⇒ Boolean
Returns the value of the positive attribute.
726 727 728 |
# File 'lib/ovirtsdk4/types.rb', line 726 def positive @positive end |
#positive=(value) ⇒ Object
Sets the value of the positive attribute.
735 736 737 |
# File 'lib/ovirtsdk4/types.rb', line 735 def positive=(value) @positive = value end |