class OvirtSDK4::Version

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {Version} class.

@param opts [Hash] 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.

@option opts [Integer] :build The value of attribute `build`.

@option opts [String] :comment The value of attribute `comment`.

@option opts [String] :description The value of attribute `description`.

@option opts [String] :full_version The value of attribute `full_version`.

@option opts [String] :id The value of attribute `id`.

@option opts [Integer] :major The value of attribute `major`.

@option opts [Integer] :minor The value of attribute `minor`.

@option opts [String] :name The value of attribute `name`.

@option opts [Integer] :revision The value of attribute `revision`.

Calls superclass method OvirtSDK4::Identified.new
# File lib/ovirtsdk4/types.rb, line 17437
def initialize(opts = {})
  super(opts)
  self.build = opts[:build]
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.full_version = opts[:full_version]
  self.id = opts[:id]
  self.major = opts[:major]
  self.minor = opts[:minor]
  self.name = opts[:name]
  self.revision = opts[:revision]
end

Public Instance Methods

build() click to toggle source

Returns the value of the `build` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 17254
def build
  return @build
end
build=(value) click to toggle source

Sets the value of the `build` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 17263
def build=(value)
  @build = value
end
comment() click to toggle source

Returns the value of the `comment` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17272
def comment
  return @comment
end
comment=(value) click to toggle source

Sets the value of the `comment` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17281
def comment=(value)
  @comment = value
end
description() click to toggle source

Returns the value of the `description` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17290
def description
  return @description
end
description=(value) click to toggle source

Sets the value of the `description` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17299
def description=(value)
  @description = value
end
full_version() click to toggle source

Returns the value of the `full_version` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17308
def full_version
  return @full_version
end
full_version=(value) click to toggle source

Sets the value of the `full_version` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17317
def full_version=(value)
  @full_version = value
end
id() click to toggle source

Returns the value of the `id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17326
def id
  return @id
end
id=(value) click to toggle source

Sets the value of the `id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17335
def id=(value)
  @id = value
end
major() click to toggle source

Returns the value of the `major` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 17344
def major
  return @major
end
major=(value) click to toggle source

Sets the value of the `major` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 17353
def major=(value)
  @major = value
end
minor() click to toggle source

Returns the value of the `minor` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 17362
def minor
  return @minor
end
minor=(value) click to toggle source

Sets the value of the `minor` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 17371
def minor=(value)
  @minor = value
end
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 17380
def name
  return @name
end
name=(value) click to toggle source

Sets the value of the `name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 17389
def name=(value)
  @name = value
end
revision() click to toggle source

Returns the value of the `revision` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 17398
def revision
  return @revision
end
revision=(value) click to toggle source

Sets the value of the `revision` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 17407
def revision=(value)
  @revision = value
end