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.
23955 23956 23957 23958 23959 23960 23961 23962 |
# File 'lib/ovirtsdk4/types.rb', line 23955 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.
23967 23968 23969 23970 23971 23972 23973 23974 |
# File 'lib/ovirtsdk4/types.rb', line 23967 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.
23772 23773 23774 |
# File 'lib/ovirtsdk4/types.rb', line 23772 def build @build end |
#build=(value) ⇒ Object
Sets the value of the build
attribute.
23781 23782 23783 |
# File 'lib/ovirtsdk4/types.rb', line 23781 def build=(value) @build = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
23790 23791 23792 |
# File 'lib/ovirtsdk4/types.rb', line 23790 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
23799 23800 23801 |
# File 'lib/ovirtsdk4/types.rb', line 23799 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
23808 23809 23810 |
# File 'lib/ovirtsdk4/types.rb', line 23808 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
23817 23818 23819 |
# File 'lib/ovirtsdk4/types.rb', line 23817 def description=(value) @description = value end |
#full_version ⇒ String
Returns the value of the full_version
attribute.
23826 23827 23828 |
# File 'lib/ovirtsdk4/types.rb', line 23826 def full_version @full_version end |
#full_version=(value) ⇒ Object
Sets the value of the full_version
attribute.
23835 23836 23837 |
# File 'lib/ovirtsdk4/types.rb', line 23835 def full_version=(value) @full_version = value end |
#hash ⇒ Object
Generates a hash value for this object.
23979 23980 23981 23982 23983 23984 23985 23986 |
# File 'lib/ovirtsdk4/types.rb', line 23979 def hash super + @build.hash + @full_version.hash + @major.hash + @minor.hash + @revision.hash end |
#id ⇒ String
Returns the value of the id
attribute.
23844 23845 23846 |
# File 'lib/ovirtsdk4/types.rb', line 23844 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
23853 23854 23855 |
# File 'lib/ovirtsdk4/types.rb', line 23853 def id=(value) @id = value end |
#major ⇒ Integer
Returns the value of the major
attribute.
23862 23863 23864 |
# File 'lib/ovirtsdk4/types.rb', line 23862 def major @major end |
#major=(value) ⇒ Object
Sets the value of the major
attribute.
23871 23872 23873 |
# File 'lib/ovirtsdk4/types.rb', line 23871 def major=(value) @major = value end |
#minor ⇒ Integer
Returns the value of the minor
attribute.
23880 23881 23882 |
# File 'lib/ovirtsdk4/types.rb', line 23880 def minor @minor end |
#minor=(value) ⇒ Object
Sets the value of the minor
attribute.
23889 23890 23891 |
# File 'lib/ovirtsdk4/types.rb', line 23889 def minor=(value) @minor = value end |
#name ⇒ String
Returns the value of the name
attribute.
23898 23899 23900 |
# File 'lib/ovirtsdk4/types.rb', line 23898 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
23907 23908 23909 |
# File 'lib/ovirtsdk4/types.rb', line 23907 def name=(value) @name = value end |
#revision ⇒ Integer
Returns the value of the revision
attribute.
23916 23917 23918 |
# File 'lib/ovirtsdk4/types.rb', line 23916 def revision @revision end |
#revision=(value) ⇒ Object
Sets the value of the revision
attribute.
23925 23926 23927 |
# File 'lib/ovirtsdk4/types.rb', line 23925 def revision=(value) @revision = value end |