Sha256: e39bb55ea804eed7cfd1df3646c91be2a036633e97ae13908b075bfaa763155b
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 Bytes
Contents
#!/usr/bin/env ruby -rubygems require File.dirname(__FILE__) + '/authentication' collection = StorageRoom::Collection.find('guidebooks') resource = collection.resources.items.first resource[:name] = 'Foobar' if resource.save puts "Resource saved" else puts "Resource could not be saved: #{resource.errors.join(', ')}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
storage_room-0.1.1 | examples/update_resource.rb |
storage_room-0.1.0 | examples/update_resource.rb |