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.
738 739 740 741 742 743 |
# File 'lib/ovirtsdk4/types.rb', line 738 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.
748 749 750 751 752 753 |
# File 'lib/ovirtsdk4/types.rb', line 748 def ==(other) super && @enabled == other.enabled && @enforcing == other.enforcing && @positive == other.positive end |
#enabled ⇒ Boolean
Returns the value of the enabled
attribute.
675 676 677 |
# File 'lib/ovirtsdk4/types.rb', line 675 def enabled @enabled end |
#enabled=(value) ⇒ Object
Sets the value of the enabled
attribute.
684 685 686 |
# File 'lib/ovirtsdk4/types.rb', line 684 def enabled=(value) @enabled = value end |
#enforcing ⇒ Boolean
Returns the value of the enforcing
attribute.
693 694 695 |
# File 'lib/ovirtsdk4/types.rb', line 693 def enforcing @enforcing end |
#enforcing=(value) ⇒ Object
Sets the value of the enforcing
attribute.
702 703 704 |
# File 'lib/ovirtsdk4/types.rb', line 702 def enforcing=(value) @enforcing = value end |
#hash ⇒ Object
Generates a hash value for this object.
758 759 760 761 762 763 |
# File 'lib/ovirtsdk4/types.rb', line 758 def hash super + @enabled.hash + @enforcing.hash + @positive.hash end |
#positive ⇒ Boolean
Returns the value of the positive
attribute.
711 712 713 |
# File 'lib/ovirtsdk4/types.rb', line 711 def positive @positive end |
#positive=(value) ⇒ Object
Sets the value of the positive
attribute.
720 721 722 |
# File 'lib/ovirtsdk4/types.rb', line 720 def positive=(value) @positive = value end |