Class: OvirtSDK4::Status

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

- (Status) initialize(opts = {})

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

  • :state (String)

    The value of attribute state.



14025
14026
14027
14028
14029
# File 'lib/ovirtsdk4/types.rb', line 14025

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

Instance Method Details

- (String) detail

Returns the value of the detail attribute.

Returns:

  • (String)


13984
13985
13986
# File 'lib/ovirtsdk4/types.rb', line 13984

def detail
  return @detail
end

- (Object) detail=(value)

Sets the value of the detail attribute.

Parameters:

  • value (String)


13993
13994
13995
# File 'lib/ovirtsdk4/types.rb', line 13993

def detail=(value)
  @detail = value
end

- (String) state

Returns the value of the state attribute.

Returns:

  • (String)


14002
14003
14004
# File 'lib/ovirtsdk4/types.rb', line 14002

def state
  return @state
end

- (Object) state=(value)

Sets the value of the state attribute.

Parameters:

  • value (String)


14011
14012
14013
# File 'lib/ovirtsdk4/types.rb', line 14011

def state=(value)
  @state = value
end