Class: OvirtSDK4::Version

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Version) initialize(opts = {})

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

  • :build (Integer)

    The value of attribute build.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :full_version (String)

    The value of attribute full_version.

  • :id (String)

    The value of attribute id.

  • :major (Integer)

    The value of attribute major.

  • :minor (Integer)

    The value of attribute minor.

  • :name (String)

    The value of attribute name.

  • :revision (Integer)

    The value of attribute revision.



18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
# File 'lib/ovirtsdk4/types.rb', line 18180

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

Instance Method Details

- (Integer) build

Returns the value of the build attribute.

Returns:

  • (Integer)


17997
17998
17999
# File 'lib/ovirtsdk4/types.rb', line 17997

def build
  return @build
end

- (Object) build=(value)

Sets the value of the build attribute.

Parameters:

  • value (Integer)


18006
18007
18008
# File 'lib/ovirtsdk4/types.rb', line 18006

def build=(value)
  @build = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


18015
18016
18017
# File 'lib/ovirtsdk4/types.rb', line 18015

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


18024
18025
18026
# File 'lib/ovirtsdk4/types.rb', line 18024

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


18033
18034
18035
# File 'lib/ovirtsdk4/types.rb', line 18033

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


18042
18043
18044
# File 'lib/ovirtsdk4/types.rb', line 18042

def description=(value)
  @description = value
end

- (String) full_version

Returns the value of the full_version attribute.

Returns:

  • (String)


18051
18052
18053
# File 'lib/ovirtsdk4/types.rb', line 18051

def full_version
  return @full_version
end

- (Object) full_version=(value)

Sets the value of the full_version attribute.

Parameters:

  • value (String)


18060
18061
18062
# File 'lib/ovirtsdk4/types.rb', line 18060

def full_version=(value)
  @full_version = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


18069
18070
18071
# File 'lib/ovirtsdk4/types.rb', line 18069

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


18078
18079
18080
# File 'lib/ovirtsdk4/types.rb', line 18078

def id=(value)
  @id = value
end

- (Integer) major

Returns the value of the major attribute.

Returns:

  • (Integer)


18087
18088
18089
# File 'lib/ovirtsdk4/types.rb', line 18087

def major
  return @major
end

- (Object) major=(value)

Sets the value of the major attribute.

Parameters:

  • value (Integer)


18096
18097
18098
# File 'lib/ovirtsdk4/types.rb', line 18096

def major=(value)
  @major = value
end

- (Integer) minor

Returns the value of the minor attribute.

Returns:

  • (Integer)


18105
18106
18107
# File 'lib/ovirtsdk4/types.rb', line 18105

def minor
  return @minor
end

- (Object) minor=(value)

Sets the value of the minor attribute.

Parameters:

  • value (Integer)


18114
18115
18116
# File 'lib/ovirtsdk4/types.rb', line 18114

def minor=(value)
  @minor = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


18123
18124
18125
# File 'lib/ovirtsdk4/types.rb', line 18123

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


18132
18133
18134
# File 'lib/ovirtsdk4/types.rb', line 18132

def name=(value)
  @name = value
end

- (Integer) revision

Returns the value of the revision attribute.

Returns:

  • (Integer)


18141
18142
18143
# File 'lib/ovirtsdk4/types.rb', line 18141

def revision
  return @revision
end

- (Object) revision=(value)

Sets the value of the revision attribute.

Parameters:

  • value (Integer)


18150
18151
18152
# File 'lib/ovirtsdk4/types.rb', line 18150

def revision=(value)
  @revision = value
end