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.30.0 lib/fog/core/whitelist_keys.rb