Class: OvirtSDK4::Option

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

- (Option) initialize(opts = {})

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

  • :type (String)

    The value of attribute type.

  • :value (String)

    The value of attribute value.



9719
9720
9721
9722
9723
9724
# File 'lib/ovirtsdk4/types.rb', line 9719

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

Instance Method Details

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


9656
9657
9658
# File 'lib/ovirtsdk4/types.rb', line 9656

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


9665
9666
9667
# File 'lib/ovirtsdk4/types.rb', line 9665

def name=(value)
  @name = value
end

- (String) type

Returns the value of the type attribute.

Returns:

  • (String)


9674
9675
9676
# File 'lib/ovirtsdk4/types.rb', line 9674

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:

  • value (String)


9683
9684
9685
# File 'lib/ovirtsdk4/types.rb', line 9683

def type=(value)
  @type = value
end

- (String) value

Returns the value of the value attribute.

Returns:

  • (String)


9692
9693
9694
# File 'lib/ovirtsdk4/types.rb', line 9692

def value
  return @value
end

- (Object) value=(value)

Sets the value of the value attribute.

Parameters:

  • value (String)


9701
9702
9703
# File 'lib/ovirtsdk4/types.rb', line 9701

def value=(value)
  @value = value
end