Method: Anyicon::Collection#list
- Defined in:
- lib/anyicon/collections.rb
#list ⇒ Array<Hash>
Lists all icons in the collection by fetching the directory contents from the repository.
32 33 34 35 |
# File 'lib/anyicon/collections.rb', line 32 def list response = fetch(collection_url) JSON.parse(response&.body || "{}") end |