CipherStash
CipherStash Documentation

Listing Collections in Your Workspace

If you need to list the existing collections in your workspace, you can do that with Stash::Client#collections. This returns an array of Stash::Collection objects, which describe the available collections.

For example:

require "cipherstash/client"

stash = Stash::Client.new

puts "Found #{stash.collections.length} collections in this workspace:"

stash.collections.each do |collection|
  puts "- #{collection.name}"
end