Class: OvirtSDK4::Kernel
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::Kernel
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Kernel) initialize(opts = {})
constructor
Creates a new instance of the Kernel class.
-
- (Version) version
Returns the value of the
version
attribute. -
- (Object) version=(value)
Sets the value of the
version
attribute.
Methods included from Type
Constructor Details
- (Kernel) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Kernel class.
5707 5708 5709 5710 |
# File 'lib/ovirtsdk4/types.rb', line 5707 def initialize(opts = {}) super(opts) self.version = opts[:version] end |
Instance Method Details
- (Version) version
Returns the value of the version
attribute.
5677 5678 5679 |
# File 'lib/ovirtsdk4/types.rb', line 5677 def version return @version end |
- (Object) version=(value)
Sets the value of the version
attribute.
The value
parameter can be an instance of Version or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
5690 5691 5692 5693 5694 5695 |
# File 'lib/ovirtsdk4/types.rb', line 5690 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |