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

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Version

Creates a new instance of the OvirtSDK4::Version class.

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.



25328
25329
25330
25331
25332
25333
25334
25335
# File 'lib/ovirtsdk4/types.rb', line 25328

def initialize(opts = {})
  super(opts)
  self.build = opts[:build]
  self.full_version = opts[:full_version]
  self.major = opts[:major]
  self.minor = opts[:minor]
  self.revision = opts[:revision]
end

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.



25340
25341
25342
25343
25344
25345
25346
25347
# File 'lib/ovirtsdk4/types.rb', line 25340

def ==(other)
  super &&
  @build == other.build &&
  @full_version == other.full_version &&
  @major == other.major &&
  @minor == other.minor &&
  @revision == other.revision
end

#buildInteger

Returns the value of the build attribute.



25145
25146
25147
# File 'lib/ovirtsdk4/types.rb', line 25145

def build
  @build
end

#build=(value) ⇒ Object

Sets the value of the build attribute.



25154
25155
25156
# File 'lib/ovirtsdk4/types.rb', line 25154

def build=(value)
  @build = value
end

#commentString

Returns the value of the comment attribute.



25163
25164
25165
# File 'lib/ovirtsdk4/types.rb', line 25163

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.



25172
25173
25174
# File 'lib/ovirtsdk4/types.rb', line 25172

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.



25181
25182
25183
# File 'lib/ovirtsdk4/types.rb', line 25181

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.



25190
25191
25192
# File 'lib/ovirtsdk4/types.rb', line 25190

def description=(value)
  @description = value
end

#full_versionString

Returns the value of the full_version attribute.



25199
25200
25201
# File 'lib/ovirtsdk4/types.rb', line 25199

def full_version
  @full_version
end

#full_version=(value) ⇒ Object

Sets the value of the full_version attribute.



25208
25209
25210
# File 'lib/ovirtsdk4/types.rb', line 25208

def full_version=(value)
  @full_version = value
end

#hashObject

Generates a hash value for this object.



25352
25353
25354
25355
25356
25357
25358
25359
# File 'lib/ovirtsdk4/types.rb', line 25352

def hash
  super +
  @build.hash +
  @full_version.hash +
  @major.hash +
  @minor.hash +
  @revision.hash
end

#idString

Returns the value of the id attribute.



25217
25218
25219
# File 'lib/ovirtsdk4/types.rb', line 25217

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.



25226
25227
25228
# File 'lib/ovirtsdk4/types.rb', line 25226

def id=(value)
  @id = value
end

#majorInteger

Returns the value of the major attribute.



25235
25236
25237
# File 'lib/ovirtsdk4/types.rb', line 25235

def major
  @major
end

#major=(value) ⇒ Object

Sets the value of the major attribute.



25244
25245
25246
# File 'lib/ovirtsdk4/types.rb', line 25244

def major=(value)
  @major = value
end

#minorInteger

Returns the value of the minor attribute.



25253
25254
25255
# File 'lib/ovirtsdk4/types.rb', line 25253

def minor
  @minor
end

#minor=(value) ⇒ Object

Sets the value of the minor attribute.



25262
25263
25264
# File 'lib/ovirtsdk4/types.rb', line 25262

def minor=(value)
  @minor = value
end

#nameString

Returns the value of the name attribute.



25271
25272
25273
# File 'lib/ovirtsdk4/types.rb', line 25271

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.



25280
25281
25282
# File 'lib/ovirtsdk4/types.rb', line 25280

def name=(value)
  @name = value
end

#revisionInteger

Returns the value of the revision attribute.



25289
25290
25291
# File 'lib/ovirtsdk4/types.rb', line 25289

def revision
  @revision
end

#revision=(value) ⇒ Object

Sets the value of the revision attribute.



25298
25299
25300
# File 'lib/ovirtsdk4/types.rb', line 25298

def revision=(value)
  @revision = value
end