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.
25058 25059 25060 25061 25062 25063 25064 25065 |
# File 'lib/ovirtsdk4/types.rb', line 25058 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.
25070 25071 25072 25073 25074 25075 25076 25077 |
# File 'lib/ovirtsdk4/types.rb', line 25070 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.
24875 24876 24877 |
# File 'lib/ovirtsdk4/types.rb', line 24875 def build @build end |
#build=(value) ⇒ Object
Sets the value of the build
attribute.
24884 24885 24886 |
# File 'lib/ovirtsdk4/types.rb', line 24884 def build=(value) @build = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
24893 24894 24895 |
# File 'lib/ovirtsdk4/types.rb', line 24893 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
24902 24903 24904 |
# File 'lib/ovirtsdk4/types.rb', line 24902 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
24911 24912 24913 |
# File 'lib/ovirtsdk4/types.rb', line 24911 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
24920 24921 24922 |
# File 'lib/ovirtsdk4/types.rb', line 24920 def description=(value) @description = value end |
#full_version ⇒ String
Returns the value of the full_version
attribute.
24929 24930 24931 |
# File 'lib/ovirtsdk4/types.rb', line 24929 def full_version @full_version end |
#full_version=(value) ⇒ Object
Sets the value of the full_version
attribute.
24938 24939 24940 |
# File 'lib/ovirtsdk4/types.rb', line 24938 def full_version=(value) @full_version = value end |
#hash ⇒ Object
Generates a hash value for this object.
25082 25083 25084 25085 25086 25087 25088 25089 |
# File 'lib/ovirtsdk4/types.rb', line 25082 def hash super + @build.hash + @full_version.hash + @major.hash + @minor.hash + @revision.hash end |
#id ⇒ String
Returns the value of the id
attribute.
24947 24948 24949 |
# File 'lib/ovirtsdk4/types.rb', line 24947 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
24956 24957 24958 |
# File 'lib/ovirtsdk4/types.rb', line 24956 def id=(value) @id = value end |
#major ⇒ Integer
Returns the value of the major
attribute.
24965 24966 24967 |
# File 'lib/ovirtsdk4/types.rb', line 24965 def major @major end |
#major=(value) ⇒ Object
Sets the value of the major
attribute.
24974 24975 24976 |
# File 'lib/ovirtsdk4/types.rb', line 24974 def major=(value) @major = value end |
#minor ⇒ Integer
Returns the value of the minor
attribute.
24983 24984 24985 |
# File 'lib/ovirtsdk4/types.rb', line 24983 def minor @minor end |
#minor=(value) ⇒ Object
Sets the value of the minor
attribute.
24992 24993 24994 |
# File 'lib/ovirtsdk4/types.rb', line 24992 def minor=(value) @minor = value end |
#name ⇒ String
Returns the value of the name
attribute.
25001 25002 25003 |
# File 'lib/ovirtsdk4/types.rb', line 25001 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
25010 25011 25012 |
# File 'lib/ovirtsdk4/types.rb', line 25010 def name=(value) @name = value end |
#revision ⇒ Integer
Returns the value of the revision
attribute.
25019 25020 25021 |
# File 'lib/ovirtsdk4/types.rb', line 25019 def revision @revision end |
#revision=(value) ⇒ Object
Sets the value of the revision
attribute.
25028 25029 25030 |
# File 'lib/ovirtsdk4/types.rb', line 25028 def revision=(value) @revision = value end |