Sha256: c7e7f2b3d4741a85cdda60dc54207b1e14cff90f3027cac9a937bf6578f7baf4

Contents?: true

Size: 207 Bytes

Versions: 41

Compression:

Stored size: 207 Bytes

Contents

module Fog
  module WhitelistKeys
    def self.whitelist(hash, valid_keys)
      valid_hash = StringifyKeys.stringify(hash)
      Hash[valid_hash.select { |k, _v| valid_keys.include?(k) }]
    end
  end
end

Version data entries

41 entries across 38 versions & 3 rubygems

Version Path
fog-core-1.44.1 lib/fog/core/whitelist_keys.rb
fog-core-1.44.0 lib/fog/core/whitelist_keys.rb
fog-core-1.43.0 lib/fog/core/whitelist_keys.rb
fog-core-1.42.0 lib/fog/core/whitelist_keys.rb
fog-core-1.41.0 lib/fog/core/whitelist_keys.rb
fog-core-1.40.1 lib/fog/core/whitelist_keys.rb
fog-core-1.40.0 lib/fog/core/whitelist_keys.rb
fog-core-1.39.0 lib/fog/core/whitelist_keys.rb
fog-core-1.38.0 lib/fog/core/whitelist_keys.rb
fog-core-1.37.0 lib/fog/core/whitelist_keys.rb
fog-core-1.36.0 lib/fog/core/whitelist_keys.rb
fog-core-1.35.0 lib/fog/core/whitelist_keys.rb
fog-core-1.34.0 lib/fog/core/whitelist_keys.rb
fog-core-1.33.0 lib/fog/core/whitelist_keys.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-core-1.32.1/lib/fog/core/whitelist_keys.rb
fog-core-1.32.1 lib/fog/core/whitelist_keys.rb
fog-core-1.32.0 lib/fog/core/whitelist_keys.rb
fog-core-1.31.1 lib/fog/core/whitelist_keys.rb
fog-core-1.31.0 lib/fog/core/whitelist_keys.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-core-1.30.0/lib/fog/core/whitelist_keys.rb