Sha256: 919e08def44de68366f7a7572e0923ca253485e7d3b6b4864bef1c0443cf603f

Contents?: true

Size: 332 Bytes

Versions: 4

Compression:

Stored size: 332 Bytes

Contents

module LinstorClient
  class OneOfDrbdVolumeLUKSVolumeStorageVolumeNVMEVolumeWritecacheVolumeCacheVolume
    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
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
ruby-linstor-client-1.1.1 generator/custom/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb
ruby-linstor-client-1.1.1 lib/ruby-linstor-client/models/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb
ruby-linstor-client-1.1.0 generator/custom/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb
ruby-linstor-client-1.1.0 lib/ruby-linstor-client/models/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb