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
true
ifself
andother
have the same attributes and values. -
#enabled ⇒ Boolean
Returns the value of the
enabled
attribute. -
#enabled=(value) ⇒ Object
Sets the value of the
enabled
attribute. -
#enforcing ⇒ Boolean
Returns the value of the
enforcing
attribute. -
#enforcing=(value) ⇒ Object
Sets the value of the
enforcing
attribute. -
#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
positive
attribute. -
#positive=(value) ⇒ Object
Sets the value of the
positive
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ AffinityRule
Creates a new instance of the OvirtSDK4::AffinityRule class.
750 751 752 753 754 755 |
# File 'lib/ovirtsdk4/types.rb', line 750 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.
760 761 762 763 764 765 |
# File 'lib/ovirtsdk4/types.rb', line 760 def ==(other) super && @enabled == other.enabled && @enforcing == other.enforcing && @positive == other.positive end |
#enabled ⇒ Boolean
Returns the value of the enabled
attribute.
687 688 689 |
# File 'lib/ovirtsdk4/types.rb', line 687 def enabled @enabled end |
#enabled=(value) ⇒ Object
Sets the value of the enabled
attribute.
696 697 698 |
# File 'lib/ovirtsdk4/types.rb', line 696 def enabled=(value) @enabled = value end |
#enforcing ⇒ Boolean
Returns the value of the enforcing
attribute.
705 706 707 |
# File 'lib/ovirtsdk4/types.rb', line 705 def enforcing @enforcing end |
#enforcing=(value) ⇒ Object
Sets the value of the enforcing
attribute.
714 715 716 |
# File 'lib/ovirtsdk4/types.rb', line 714 def enforcing=(value) @enforcing = value end |
#hash ⇒ Object
Generates a hash value for this object.
770 771 772 773 774 775 |
# File 'lib/ovirtsdk4/types.rb', line 770 def hash super + @enabled.hash + @enforcing.hash + @positive.hash end |
#positive ⇒ Boolean
Returns the value of the positive
attribute.
723 724 725 |
# File 'lib/ovirtsdk4/types.rb', line 723 def positive @positive end |
#positive=(value) ⇒ Object
Sets the value of the positive
attribute.
732 733 734 |
# File 'lib/ovirtsdk4/types.rb', line 732 def positive=(value) @positive = value end |