Class: OvirtSDK4::SkipIfConnectivityBroken

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

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (SkipIfConnectivityBroken) initialize(opts = {})

Creates a new instance of the OvirtSDK4::SkipIfConnectivityBroken 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):

  • :enabled (Boolean)

    The value of attribute enabled.

  • :threshold (Integer)

    The value of attribute threshold.



13955
13956
13957
13958
13959
# File 'lib/ovirtsdk4/types.rb', line 13955

def initialize(opts = {})
  super(opts)
  self.enabled = opts[:enabled]
  self.threshold = opts[:threshold]
end

Instance Method Details

- (Boolean) enabled

Returns the value of the enabled attribute.

Returns:

  • (Boolean)


13912
13913
13914
# File 'lib/ovirtsdk4/types.rb', line 13912

def enabled
  return @enabled
end

- (Object) enabled=(value)

Sets the value of the enabled attribute.

Parameters:

  • value (Boolean)


13921
13922
13923
# File 'lib/ovirtsdk4/types.rb', line 13921

def enabled=(value)
  @enabled = value
end

- (Integer) threshold

Returns the value of the threshold attribute.

Returns:

  • (Integer)


13930
13931
13932
# File 'lib/ovirtsdk4/types.rb', line 13930

def threshold
  return @threshold
end

- (Object) threshold=(value)

Sets the value of the threshold attribute.

Parameters:

  • value (Integer)


13939
13940
13941
# File 'lib/ovirtsdk4/types.rb', line 13939

def threshold=(value)
  @threshold = value
end