class LinstorClient::OneOfDrbdVolumeLUKSVolumeStorageVolumeNVMEVolumeWritecacheVolume

Public Class Methods

build_from_hash(attributes) click to toggle source
# 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