Sha256: b54a685a705fc3ba9b5cb4af8057057d7100af7fe0f24eae933614028bbb8a3a

Contents?: true

Size: 306 Bytes

Versions: 6

Compression:

Stored size: 306 Bytes

Contents

#!/usr/bin/env ruby -rubygems

require File.dirname(__FILE__) + '/authentication'

collections = StorageRoom::Collection.all

puts "Collections:"

collections.resources.each do |collection| # The array returned by Collection.all contains all the items in the resources key
  puts "- #{collection.name}"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
storage_room-0.3.5 examples/get_collections.rb
storage_room-0.3.4 examples/get_collections.rb
storage_room-0.3.3 examples/get_collections.rb
storage_room-0.3.2 examples/get_collections.rb
storage_room-0.3.1 examples/get_collections.rb
storage_room-0.3.0 examples/get_collections.rb