Class: LinstorClient::OneOfDrbdVolumeLUKSVolumeStorageVolumeNVMEVolumeWritecacheVolumeCacheVolume
- Inherits:
-
Object
- Object
- LinstorClient::OneOfDrbdVolumeLUKSVolumeStorageVolumeNVMEVolumeWritecacheVolumeCacheVolume
- Defined in:
- lib/ruby-linstor-client/models/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb
Class Method Summary collapse
Class Method Details
.build_from_hash(attributes) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/ruby-linstor-client/models/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb', line 3 def self.build_from_hash(attributes) if attributes.key?(:drbd_volume_definition) DrbdVolume.build_from_hash(attributes) else StorageVolume.build_from_hash(attributes) end end |