Class: OvirtSDK4::SeLinux
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have 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
mode
attribute. -
#mode=(value) ⇒ Object
Sets the value of the
mode
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ SeLinux
Creates a new instance of the OvirtSDK4::SeLinux class.
18726 18727 18728 18729 |
# File 'lib/ovirtsdk4/types.rb', line 18726 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.
18734 18735 18736 18737 |
# File 'lib/ovirtsdk4/types.rb', line 18734 def ==(other) super && @mode == other.mode end |
#hash ⇒ Object
Generates a hash value for this object.
18742 18743 18744 18745 |
# File 'lib/ovirtsdk4/types.rb', line 18742 def hash super + @mode.hash end |
#mode ⇒ SeLinuxMode
Returns the value of the mode
attribute.
18703 18704 18705 |
# File 'lib/ovirtsdk4/types.rb', line 18703 def mode @mode end |
#mode=(value) ⇒ Object
Sets the value of the mode
attribute.
18712 18713 18714 |
# File 'lib/ovirtsdk4/types.rb', line 18712 def mode=(value) @mode = value end |