Class: OvirtSDK4::Package

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

- (Package) initialize(opts = {})

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



9758
9759
9760
9761
# File 'lib/ovirtsdk4/types.rb', line 9758

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

Instance Method Details

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


9735
9736
9737
# File 'lib/ovirtsdk4/types.rb', line 9735

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


9744
9745
9746
# File 'lib/ovirtsdk4/types.rb', line 9744

def name=(value)
  @name = value
end