Class: OvirtSDK4::Property

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

- (Property) initialize(opts = {})

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

  • :name (String)

    The value of attribute name.

  • :value (String)

    The value of attribute value.



11107
11108
11109
11110
11111
# File 'lib/ovirtsdk4/types.rb', line 11107

def initialize(opts = {})
  super(opts)
  self.name = opts[:name]
  self.value = opts[:value]
end

Instance Method Details

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


11064
11065
11066
# File 'lib/ovirtsdk4/types.rb', line 11064

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


11073
11074
11075
# File 'lib/ovirtsdk4/types.rb', line 11073

def name=(value)
  @name = value
end

- (String) value

Returns the value of the value attribute.

Returns:

  • (String)


11082
11083
11084
# File 'lib/ovirtsdk4/types.rb', line 11082

def value
  return @value
end

- (Object) value=(value)

Sets the value of the value attribute.

Parameters:

  • value (String)


11091
11092
11093
# File 'lib/ovirtsdk4/types.rb', line 11091

def value=(value)
  @value = value
end