class OvirtSDK4::Version
Public Class Methods
Creates a new instance of the {Version} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [Integer] :build The value of attribute ‘build`.
@option opts [String] :comment The value of attribute ‘comment`.
@option opts [String] :description The value of attribute ‘description`.
@option opts [String] :full_version The value of attribute ‘full_version`.
@option opts [String] :id The value of attribute ‘id`.
@option opts [Integer] :major The value of attribute ‘major`.
@option opts [Integer] :minor The value of attribute ‘minor`.
@option opts [String] :name The value of attribute ‘name`.
@option opts [Integer] :revision The value of attribute ‘revision`.
OvirtSDK4::Identified::new
# 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
Public Instance Methods
Returns ‘true` if `self` and `other` have the same attributes and values.
OvirtSDK4::Identified#==
# 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
Returns the value of the ‘build` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 25145 def build @build end
Sets the value of the ‘build` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 25154 def build=(value) @build = value end
Returns the value of the ‘comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 25163 def comment @comment end
Sets the value of the ‘comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 25172 def comment=(value) @comment = value end
Returns the value of the ‘description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 25181 def description @description end
Sets the value of the ‘description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 25190 def description=(value) @description = value end
Returns the value of the ‘full_version` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 25199 def full_version @full_version end
Sets the value of the ‘full_version` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 25208 def full_version=(value) @full_version = value end
Generates a hash value for this object.
OvirtSDK4::Identified#hash
# File lib/ovirtsdk4/types.rb, line 25352 def hash super + @build.hash + @full_version.hash + @major.hash + @minor.hash + @revision.hash end
Returns the value of the ‘id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 25217 def id @id end
Sets the value of the ‘id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 25226 def id=(value) @id = value end
Returns the value of the ‘major` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 25235 def major @major end
Sets the value of the ‘major` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 25244 def major=(value) @major = value end
Returns the value of the ‘minor` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 25253 def minor @minor end
Sets the value of the ‘minor` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 25262 def minor=(value) @minor = value end
Returns the value of the ‘name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 25271 def name @name end
Sets the value of the ‘name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 25280 def name=(value) @name = value end
Returns the value of the ‘revision` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 25289 def revision @revision end
Sets the value of the ‘revision` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 25298 def revision=(value) @revision = value end