Method: Anyicon::Collection#list

Defined in:
lib/anyicon/collections.rb

#listArray<Hash>

Lists all icons in the collection by fetching the directory contents from the repository.

Returns:

  • a list of icons with their metadata



32
33
34
35
# File 'lib/anyicon/collections.rb', line 32

def list
  response = fetch(collection_url)
  JSON.parse(response&.body || "{}")
end