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.
23755 23756 23757 23758 23759 23760 23761 23762 |
# File 'lib/ovirtsdk4/types.rb', line 23755 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.
23767 23768 23769 23770 23771 23772 23773 23774 |
# File 'lib/ovirtsdk4/types.rb', line 23767 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.
23572 23573 23574 |
# File 'lib/ovirtsdk4/types.rb', line 23572 def build @build end |
#build=(value) ⇒ Object
Sets the value of the build
attribute.
23581 23582 23583 |
# File 'lib/ovirtsdk4/types.rb', line 23581 def build=(value) @build = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
23590 23591 23592 |
# File 'lib/ovirtsdk4/types.rb', line 23590 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
23599 23600 23601 |
# File 'lib/ovirtsdk4/types.rb', line 23599 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
23608 23609 23610 |
# File 'lib/ovirtsdk4/types.rb', line 23608 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
23617 23618 23619 |
# File 'lib/ovirtsdk4/types.rb', line 23617 def description=(value) @description = value end |
#full_version ⇒ String
Returns the value of the full_version
attribute.
23626 23627 23628 |
# File 'lib/ovirtsdk4/types.rb', line 23626 def full_version @full_version end |
#full_version=(value) ⇒ Object
Sets the value of the full_version
attribute.
23635 23636 23637 |
# File 'lib/ovirtsdk4/types.rb', line 23635 def full_version=(value) @full_version = value end |
#hash ⇒ Object
Generates a hash value for this object.
23779 23780 23781 23782 23783 23784 23785 23786 |
# File 'lib/ovirtsdk4/types.rb', line 23779 def hash super + @build.hash + @full_version.hash + @major.hash + @minor.hash + @revision.hash end |
#id ⇒ String
Returns the value of the id
attribute.
23644 23645 23646 |
# File 'lib/ovirtsdk4/types.rb', line 23644 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
23653 23654 23655 |
# File 'lib/ovirtsdk4/types.rb', line 23653 def id=(value) @id = value end |
#major ⇒ Integer
Returns the value of the major
attribute.
23662 23663 23664 |
# File 'lib/ovirtsdk4/types.rb', line 23662 def major @major end |
#major=(value) ⇒ Object
Sets the value of the major
attribute.
23671 23672 23673 |
# File 'lib/ovirtsdk4/types.rb', line 23671 def major=(value) @major = value end |
#minor ⇒ Integer
Returns the value of the minor
attribute.
23680 23681 23682 |
# File 'lib/ovirtsdk4/types.rb', line 23680 def minor @minor end |
#minor=(value) ⇒ Object
Sets the value of the minor
attribute.
23689 23690 23691 |
# File 'lib/ovirtsdk4/types.rb', line 23689 def minor=(value) @minor = value end |
#name ⇒ String
Returns the value of the name
attribute.
23698 23699 23700 |
# File 'lib/ovirtsdk4/types.rb', line 23698 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
23707 23708 23709 |
# File 'lib/ovirtsdk4/types.rb', line 23707 def name=(value) @name = value end |
#revision ⇒ Integer
Returns the value of the revision
attribute.
23716 23717 23718 |
# File 'lib/ovirtsdk4/types.rb', line 23716 def revision @revision end |
#revision=(value) ⇒ Object
Sets the value of the revision
attribute.
23725 23726 23727 |
# File 'lib/ovirtsdk4/types.rb', line 23725 def revision=(value) @revision = value end |