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
trueifselfandotherhave the same attributes and values. -
#build ⇒ Integer
Returns the value of the
buildattribute. -
#build=(value) ⇒ Object
Sets the value of the
buildattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#full_version ⇒ String
Returns the value of the
full_versionattribute. -
#full_version=(value) ⇒ Object
Sets the value of the
full_versionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ Version
constructor
Creates a new instance of the Version class.
-
#major ⇒ Integer
Returns the value of the
majorattribute. -
#major=(value) ⇒ Object
Sets the value of the
majorattribute. -
#minor ⇒ Integer
Returns the value of the
minorattribute. -
#minor=(value) ⇒ Object
Sets the value of the
minorattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#revision ⇒ Integer
Returns the value of the
revisionattribute. -
#revision=(value) ⇒ Object
Sets the value of the
revisionattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Version
Creates a new instance of the OvirtSDK4::Version class.
25328 25329 25330 25331 25332 25333 25334 25335 |
# File 'lib/ovirtsdk4/types.rb', line 25328 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.
25340 25341 25342 25343 25344 25345 25346 25347 |
# File 'lib/ovirtsdk4/types.rb', line 25340 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.
25145 25146 25147 |
# File 'lib/ovirtsdk4/types.rb', line 25145 def build @build end |
#build=(value) ⇒ Object
Sets the value of the build attribute.
25154 25155 25156 |
# File 'lib/ovirtsdk4/types.rb', line 25154 def build=(value) @build = value end |
#comment ⇒ String
Returns the value of the comment attribute.
25163 25164 25165 |
# File 'lib/ovirtsdk4/types.rb', line 25163 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
25172 25173 25174 |
# File 'lib/ovirtsdk4/types.rb', line 25172 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
25181 25182 25183 |
# File 'lib/ovirtsdk4/types.rb', line 25181 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
25190 25191 25192 |
# File 'lib/ovirtsdk4/types.rb', line 25190 def description=(value) @description = value end |
#full_version ⇒ String
Returns the value of the full_version attribute.
25199 25200 25201 |
# File 'lib/ovirtsdk4/types.rb', line 25199 def full_version @full_version end |
#full_version=(value) ⇒ Object
Sets the value of the full_version attribute.
25208 25209 25210 |
# File 'lib/ovirtsdk4/types.rb', line 25208 def full_version=(value) @full_version = value end |
#hash ⇒ Object
Generates a hash value for this object.
25352 25353 25354 25355 25356 25357 25358 25359 |
# File 'lib/ovirtsdk4/types.rb', line 25352 def hash super + @build.hash + @full_version.hash + @major.hash + @minor.hash + @revision.hash end |
#id ⇒ String
Returns the value of the id attribute.
25217 25218 25219 |
# File 'lib/ovirtsdk4/types.rb', line 25217 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
25226 25227 25228 |
# File 'lib/ovirtsdk4/types.rb', line 25226 def id=(value) @id = value end |
#major ⇒ Integer
Returns the value of the major attribute.
25235 25236 25237 |
# File 'lib/ovirtsdk4/types.rb', line 25235 def major @major end |
#major=(value) ⇒ Object
Sets the value of the major attribute.
25244 25245 25246 |
# File 'lib/ovirtsdk4/types.rb', line 25244 def major=(value) @major = value end |
#minor ⇒ Integer
Returns the value of the minor attribute.
25253 25254 25255 |
# File 'lib/ovirtsdk4/types.rb', line 25253 def minor @minor end |
#minor=(value) ⇒ Object
Sets the value of the minor attribute.
25262 25263 25264 |
# File 'lib/ovirtsdk4/types.rb', line 25262 def minor=(value) @minor = value end |
#name ⇒ String
Returns the value of the name attribute.
25271 25272 25273 |
# File 'lib/ovirtsdk4/types.rb', line 25271 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
25280 25281 25282 |
# File 'lib/ovirtsdk4/types.rb', line 25280 def name=(value) @name = value end |
#revision ⇒ Integer
Returns the value of the revision attribute.
25289 25290 25291 |
# File 'lib/ovirtsdk4/types.rb', line 25289 def revision @revision end |
#revision=(value) ⇒ Object
Sets the value of the revision attribute.
25298 25299 25300 |
# File 'lib/ovirtsdk4/types.rb', line 25298 def revision=(value) @revision = value end |