Class: OvirtSDK4::SeLinux

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ SeLinux

Creates a new instance of the OvirtSDK4::SeLinux class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):



18367
18368
18369
18370
# File 'lib/ovirtsdk4/types.rb', line 18367

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.



18375
18376
18377
18378
# File 'lib/ovirtsdk4/types.rb', line 18375

def ==(other)
  super &&
  @mode == other.mode
end

#hashObject

Generates a hash value for this object.



18383
18384
18385
18386
# File 'lib/ovirtsdk4/types.rb', line 18383

def hash
  super +
  @mode.hash
end

#modeSeLinuxMode

Returns the value of the mode attribute.

Returns:



18344
18345
18346
# File 'lib/ovirtsdk4/types.rb', line 18344

def mode
  @mode
end

#mode=(value) ⇒ Object

Sets the value of the mode attribute.

Parameters:



18353
18354
18355
# File 'lib/ovirtsdk4/types.rb', line 18353

def mode=(value)
  @mode = value
end