Class: OvirtSDK4::CustomProperty

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

- (CustomProperty) initialize(opts = {})

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

  • :regexp (String)

    The value of attribute regexp.

  • :value (String)

    The value of attribute value.



2124
2125
2126
2127
2128
2129
# File 'lib/ovirtsdk4/types.rb', line 2124

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

Instance Method Details

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


2061
2062
2063
# File 'lib/ovirtsdk4/types.rb', line 2061

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


2070
2071
2072
# File 'lib/ovirtsdk4/types.rb', line 2070

def name=(value)
  @name = value
end

- (String) regexp

Returns the value of the regexp attribute.

Returns:

  • (String)


2079
2080
2081
# File 'lib/ovirtsdk4/types.rb', line 2079

def regexp
  return @regexp
end

- (Object) regexp=(value)

Sets the value of the regexp attribute.

Parameters:

  • value (String)


2088
2089
2090
# File 'lib/ovirtsdk4/types.rb', line 2088

def regexp=(value)
  @regexp = value
end

- (String) value

Returns the value of the value attribute.

Returns:

  • (String)


2097
2098
2099
# File 'lib/ovirtsdk4/types.rb', line 2097

def value
  return @value
end

- (Object) value=(value)

Sets the value of the value attribute.

Parameters:

  • value (String)


2106
2107
2108
# File 'lib/ovirtsdk4/types.rb', line 2106

def value=(value)
  @value = value
end