Class: OvirtSDK4::Fault

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

- (Fault) initialize(opts = {})

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

  • :detail (String)

    The value of attribute detail.

  • :reason (String)

    The value of attribute reason.



2653
2654
2655
2656
2657
# File 'lib/ovirtsdk4/types.rb', line 2653

def initialize(opts = {})
  super(opts)
  self.detail = opts[:detail]
  self.reason = opts[:reason]
end

Instance Method Details

- (String) detail

Returns the value of the detail attribute.

Returns:

  • (String)


2610
2611
2612
# File 'lib/ovirtsdk4/types.rb', line 2610

def detail
  return @detail
end

- (Object) detail=(value)

Sets the value of the detail attribute.

Parameters:

  • value (String)


2619
2620
2621
# File 'lib/ovirtsdk4/types.rb', line 2619

def detail=(value)
  @detail = value
end

- (String) reason

Returns the value of the reason attribute.

Returns:

  • (String)


2628
2629
2630
# File 'lib/ovirtsdk4/types.rb', line 2628

def reason
  return @reason
end

- (Object) reason=(value)

Sets the value of the reason attribute.

Parameters:

  • value (String)


2637
2638
2639
# File 'lib/ovirtsdk4/types.rb', line 2637

def reason=(value)
  @reason = value
end