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.
24080 24081 24082 24083 24084 24085 24086 24087 |
# File 'lib/ovirtsdk4/types.rb', line 24080 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.
24092 24093 24094 24095 24096 24097 24098 24099 |
# File 'lib/ovirtsdk4/types.rb', line 24092 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.
23897 23898 23899 |
# File 'lib/ovirtsdk4/types.rb', line 23897 def build @build end |
#build=(value) ⇒ Object
Sets the value of the build
attribute.
23906 23907 23908 |
# File 'lib/ovirtsdk4/types.rb', line 23906 def build=(value) @build = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
23915 23916 23917 |
# File 'lib/ovirtsdk4/types.rb', line 23915 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
23924 23925 23926 |
# File 'lib/ovirtsdk4/types.rb', line 23924 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
23933 23934 23935 |
# File 'lib/ovirtsdk4/types.rb', line 23933 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
23942 23943 23944 |
# File 'lib/ovirtsdk4/types.rb', line 23942 def description=(value) @description = value end |
#full_version ⇒ String
Returns the value of the full_version
attribute.
23951 23952 23953 |
# File 'lib/ovirtsdk4/types.rb', line 23951 def full_version @full_version end |
#full_version=(value) ⇒ Object
Sets the value of the full_version
attribute.
23960 23961 23962 |
# File 'lib/ovirtsdk4/types.rb', line 23960 def full_version=(value) @full_version = value end |
#hash ⇒ Object
Generates a hash value for this object.
24104 24105 24106 24107 24108 24109 24110 24111 |
# File 'lib/ovirtsdk4/types.rb', line 24104 def hash super + @build.hash + @full_version.hash + @major.hash + @minor.hash + @revision.hash end |
#id ⇒ String
Returns the value of the id
attribute.
23969 23970 23971 |
# File 'lib/ovirtsdk4/types.rb', line 23969 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
23978 23979 23980 |
# File 'lib/ovirtsdk4/types.rb', line 23978 def id=(value) @id = value end |
#major ⇒ Integer
Returns the value of the major
attribute.
23987 23988 23989 |
# File 'lib/ovirtsdk4/types.rb', line 23987 def major @major end |
#major=(value) ⇒ Object
Sets the value of the major
attribute.
23996 23997 23998 |
# File 'lib/ovirtsdk4/types.rb', line 23996 def major=(value) @major = value end |
#minor ⇒ Integer
Returns the value of the minor
attribute.
24005 24006 24007 |
# File 'lib/ovirtsdk4/types.rb', line 24005 def minor @minor end |
#minor=(value) ⇒ Object
Sets the value of the minor
attribute.
24014 24015 24016 |
# File 'lib/ovirtsdk4/types.rb', line 24014 def minor=(value) @minor = value end |
#name ⇒ String
Returns the value of the name
attribute.
24023 24024 24025 |
# File 'lib/ovirtsdk4/types.rb', line 24023 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
24032 24033 24034 |
# File 'lib/ovirtsdk4/types.rb', line 24032 def name=(value) @name = value end |
#revision ⇒ Integer
Returns the value of the revision
attribute.
24041 24042 24043 |
# File 'lib/ovirtsdk4/types.rb', line 24041 def revision @revision end |
#revision=(value) ⇒ Object
Sets the value of the revision
attribute.
24050 24051 24052 |
# File 'lib/ovirtsdk4/types.rb', line 24050 def revision=(value) @revision = value end |