Sha256: 7b91b278e99fc46d7b4447a43cd443401230acb167d39fffb7f11ca33d5bf801

Contents?: true

Size: 321 Bytes

Versions: 6

Compression:

Stored size: 321 Bytes

Contents

module LinstorClient
  class OneOfDrbdVolumeLUKSVolumeStorageVolumeNVMEVolumeWritecacheVolume
    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

6 entries across 3 versions & 1 rubygems

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