Class: OvirtSDK4::Version
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Version
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#build ⇒ Integer
Returns the value of the
build
attribute. -
#build=(value) ⇒ Object
Sets the value of the
build
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#full_version ⇒ String
Returns the value of the
full_version
attribute. -
#full_version=(value) ⇒ Object
Sets the value of the
full_version
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ Version
constructor
Creates a new instance of the Version class.
-
#major ⇒ Integer
Returns the value of the
major
attribute. -
#major=(value) ⇒ Object
Sets the value of the
major
attribute. -
#minor ⇒ Integer
Returns the value of the
minor
attribute. -
#minor=(value) ⇒ Object
Sets the value of the
minor
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#revision ⇒ Integer
Returns the value of the
revision
attribute. -
#revision=(value) ⇒ Object
Sets the value of the
revision
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Version
Creates a new instance of the OvirtSDK4::Version class.
24585 24586 24587 24588 24589 24590 24591 24592 |
# File 'lib/ovirtsdk4/types.rb', line 24585 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.
24597 24598 24599 24600 24601 24602 24603 24604 |
# File 'lib/ovirtsdk4/types.rb', line 24597 def ==(other) super && @build == other.build && @full_version == other.full_version && @major == other.major && @minor == other.minor && @revision == other.revision end |
#build ⇒ Integer
Returns the value of the build
attribute.
24402 24403 24404 |
# File 'lib/ovirtsdk4/types.rb', line 24402 def build @build end |
#build=(value) ⇒ Object
Sets the value of the build
attribute.
24411 24412 24413 |
# File 'lib/ovirtsdk4/types.rb', line 24411 def build=(value) @build = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
24420 24421 24422 |
# File 'lib/ovirtsdk4/types.rb', line 24420 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
24429 24430 24431 |
# File 'lib/ovirtsdk4/types.rb', line 24429 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
24438 24439 24440 |
# File 'lib/ovirtsdk4/types.rb', line 24438 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
24447 24448 24449 |
# File 'lib/ovirtsdk4/types.rb', line 24447 def description=(value) @description = value end |
#full_version ⇒ String
Returns the value of the full_version
attribute.
24456 24457 24458 |
# File 'lib/ovirtsdk4/types.rb', line 24456 def full_version @full_version end |
#full_version=(value) ⇒ Object
Sets the value of the full_version
attribute.
24465 24466 24467 |
# File 'lib/ovirtsdk4/types.rb', line 24465 def full_version=(value) @full_version = value end |
#hash ⇒ Object
Generates a hash value for this object.
24609 24610 24611 24612 24613 24614 24615 24616 |
# File 'lib/ovirtsdk4/types.rb', line 24609 def hash super + @build.hash + @full_version.hash + @major.hash + @minor.hash + @revision.hash end |
#id ⇒ String
Returns the value of the id
attribute.
24474 24475 24476 |
# File 'lib/ovirtsdk4/types.rb', line 24474 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
24483 24484 24485 |
# File 'lib/ovirtsdk4/types.rb', line 24483 def id=(value) @id = value end |
#major ⇒ Integer
Returns the value of the major
attribute.
24492 24493 24494 |
# File 'lib/ovirtsdk4/types.rb', line 24492 def major @major end |
#major=(value) ⇒ Object
Sets the value of the major
attribute.
24501 24502 24503 |
# File 'lib/ovirtsdk4/types.rb', line 24501 def major=(value) @major = value end |
#minor ⇒ Integer
Returns the value of the minor
attribute.
24510 24511 24512 |
# File 'lib/ovirtsdk4/types.rb', line 24510 def minor @minor end |
#minor=(value) ⇒ Object
Sets the value of the minor
attribute.
24519 24520 24521 |
# File 'lib/ovirtsdk4/types.rb', line 24519 def minor=(value) @minor = value end |
#name ⇒ String
Returns the value of the name
attribute.
24528 24529 24530 |
# File 'lib/ovirtsdk4/types.rb', line 24528 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
24537 24538 24539 |
# File 'lib/ovirtsdk4/types.rb', line 24537 def name=(value) @name = value end |
#revision ⇒ Integer
Returns the value of the revision
attribute.
24546 24547 24548 |
# File 'lib/ovirtsdk4/types.rb', line 24546 def revision @revision end |
#revision=(value) ⇒ Object
Sets the value of the revision
attribute.
24555 24556 24557 |
# File 'lib/ovirtsdk4/types.rb', line 24555 def revision=(value) @revision = value end |