Class: OvirtSDK4::SeLinux
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ SeLinux
constructor
Creates a new instance of the SeLinux class.
-
#mode ⇒ SeLinuxMode
Returns the value of the
modeattribute. -
#mode=(value) ⇒ Object
Sets the value of the
modeattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ SeLinux
Creates a new instance of the OvirtSDK4::SeLinux class.
19469 19470 19471 19472 |
# File 'lib/ovirtsdk4/types.rb', line 19469 def initialize(opts = {}) super(opts) self.mode = opts[:mode] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
19477 19478 19479 19480 |
# File 'lib/ovirtsdk4/types.rb', line 19477 def ==(other) super && @mode == other.mode end |
#hash ⇒ Object
Generates a hash value for this object.
19485 19486 19487 19488 |
# File 'lib/ovirtsdk4/types.rb', line 19485 def hash super + @mode.hash end |
#mode ⇒ SeLinuxMode
Returns the value of the mode attribute.
19446 19447 19448 |
# File 'lib/ovirtsdk4/types.rb', line 19446 def mode @mode end |
#mode=(value) ⇒ Object
Sets the value of the mode attribute.
19455 19456 19457 |
# File 'lib/ovirtsdk4/types.rb', line 19455 def mode=(value) @mode = value end |