Class: OvirtSDK4::CpuType

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

- (CpuType) initialize(opts = {})

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

  • :architecture (Architecture)

    The value of attribute architecture.

  • :level (Integer)

    The value of attribute level.

  • :name (String)

    The value of attribute name.



2045
2046
2047
2048
2049
2050
# File 'lib/ovirtsdk4/types.rb', line 2045

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

Instance Method Details

- (Architecture) architecture

Returns the value of the architecture attribute.

Returns:



1982
1983
1984
# File 'lib/ovirtsdk4/types.rb', line 1982

def architecture
  return @architecture
end

- (Object) architecture=(value)

Sets the value of the architecture attribute.

Parameters:



1991
1992
1993
# File 'lib/ovirtsdk4/types.rb', line 1991

def architecture=(value)
  @architecture = value
end

- (Integer) level

Returns the value of the level attribute.

Returns:

  • (Integer)


2000
2001
2002
# File 'lib/ovirtsdk4/types.rb', line 2000

def level
  return @level
end

- (Object) level=(value)

Sets the value of the level attribute.

Parameters:

  • value (Integer)


2009
2010
2011
# File 'lib/ovirtsdk4/types.rb', line 2009

def level=(value)
  @level = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


2018
2019
2020
# File 'lib/ovirtsdk4/types.rb', line 2018

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


2027
2028
2029
# File 'lib/ovirtsdk4/types.rb', line 2027

def name=(value)
  @name = value
end