Class: OvirtSDK4::SerialNumber

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

- (SerialNumber) initialize(opts = {})

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

  • :policy (SerialNumberPolicy)

    The value of attribute policy.

  • :value (String)

    The value of attribute value.



13671
13672
13673
13674
13675
# File 'lib/ovirtsdk4/types.rb', line 13671

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

Instance Method Details

- (SerialNumberPolicy) policy

Returns the value of the policy attribute.

Returns:



13628
13629
13630
# File 'lib/ovirtsdk4/types.rb', line 13628

def policy
  return @policy
end

- (Object) policy=(value)

Sets the value of the policy attribute.

Parameters:



13637
13638
13639
# File 'lib/ovirtsdk4/types.rb', line 13637

def policy=(value)
  @policy = value
end

- (String) value

Returns the value of the value attribute.

Returns:

  • (String)


13646
13647
13648
# File 'lib/ovirtsdk4/types.rb', line 13646

def value
  return @value
end

- (Object) value=(value)

Sets the value of the value attribute.

Parameters:

  • value (String)


13655
13656
13657
# File 'lib/ovirtsdk4/types.rb', line 13655

def value=(value)
  @value = value
end