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.
23879 23880 23881 23882 23883 23884 23885 23886 |
# File 'lib/ovirtsdk4/types.rb', line 23879 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.
23891 23892 23893 23894 23895 23896 23897 23898 |
# File 'lib/ovirtsdk4/types.rb', line 23891 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.
23696 23697 23698 |
# File 'lib/ovirtsdk4/types.rb', line 23696 def build @build end |
#build=(value) ⇒ Object
Sets the value of the build
attribute.
23705 23706 23707 |
# File 'lib/ovirtsdk4/types.rb', line 23705 def build=(value) @build = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
23714 23715 23716 |
# File 'lib/ovirtsdk4/types.rb', line 23714 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
23723 23724 23725 |
# File 'lib/ovirtsdk4/types.rb', line 23723 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
23732 23733 23734 |
# File 'lib/ovirtsdk4/types.rb', line 23732 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
23741 23742 23743 |
# File 'lib/ovirtsdk4/types.rb', line 23741 def description=(value) @description = value end |
#full_version ⇒ String
Returns the value of the full_version
attribute.
23750 23751 23752 |
# File 'lib/ovirtsdk4/types.rb', line 23750 def full_version @full_version end |
#full_version=(value) ⇒ Object
Sets the value of the full_version
attribute.
23759 23760 23761 |
# File 'lib/ovirtsdk4/types.rb', line 23759 def full_version=(value) @full_version = value end |
#hash ⇒ Object
Generates a hash value for this object.
23903 23904 23905 23906 23907 23908 23909 23910 |
# File 'lib/ovirtsdk4/types.rb', line 23903 def hash super + @build.hash + @full_version.hash + @major.hash + @minor.hash + @revision.hash end |
#id ⇒ String
Returns the value of the id
attribute.
23768 23769 23770 |
# File 'lib/ovirtsdk4/types.rb', line 23768 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
23777 23778 23779 |
# File 'lib/ovirtsdk4/types.rb', line 23777 def id=(value) @id = value end |
#major ⇒ Integer
Returns the value of the major
attribute.
23786 23787 23788 |
# File 'lib/ovirtsdk4/types.rb', line 23786 def major @major end |
#major=(value) ⇒ Object
Sets the value of the major
attribute.
23795 23796 23797 |
# File 'lib/ovirtsdk4/types.rb', line 23795 def major=(value) @major = value end |
#minor ⇒ Integer
Returns the value of the minor
attribute.
23804 23805 23806 |
# File 'lib/ovirtsdk4/types.rb', line 23804 def minor @minor end |
#minor=(value) ⇒ Object
Sets the value of the minor
attribute.
23813 23814 23815 |
# File 'lib/ovirtsdk4/types.rb', line 23813 def minor=(value) @minor = value end |
#name ⇒ String
Returns the value of the name
attribute.
23822 23823 23824 |
# File 'lib/ovirtsdk4/types.rb', line 23822 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
23831 23832 23833 |
# File 'lib/ovirtsdk4/types.rb', line 23831 def name=(value) @name = value end |
#revision ⇒ Integer
Returns the value of the revision
attribute.
23840 23841 23842 |
# File 'lib/ovirtsdk4/types.rb', line 23840 def revision @revision end |
#revision=(value) ⇒ Object
Sets the value of the revision
attribute.
23849 23850 23851 |
# File 'lib/ovirtsdk4/types.rb', line 23849 def revision=(value) @revision = value end |