Class: OvirtSDK4::Configuration

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

- (Configuration) initialize(opts = {})

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

  • :data (String)

    The value of attribute data.

  • :type (ConfigurationType)

    The value of attribute type.



1523
1524
1525
1526
1527
# File 'lib/ovirtsdk4/types.rb', line 1523

def initialize(opts = {})
  super(opts)
  self.data = opts[:data]
  self.type = opts[:type]
end

Instance Method Details

- (String) data

Returns the value of the data attribute.

Returns:

  • (String)


1480
1481
1482
# File 'lib/ovirtsdk4/types.rb', line 1480

def data
  return @data
end

- (Object) data=(value)

Sets the value of the data attribute.

Parameters:

  • value (String)


1489
1490
1491
# File 'lib/ovirtsdk4/types.rb', line 1489

def data=(value)
  @data = value
end

- (ConfigurationType) type

Returns the value of the type attribute.

Returns:



1498
1499
1500
# File 'lib/ovirtsdk4/types.rb', line 1498

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:



1507
1508
1509
# File 'lib/ovirtsdk4/types.rb', line 1507

def type=(value)
  @type = value
end