Skip to content

Instantly share code, notes, and snippets.

@digitalronin
Created October 17, 2010 11:50
Show Gist options
  • Save digitalronin/630776 to your computer and use it in GitHub Desktop.
Save digitalronin/630776 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'active_resource'
require 'pp'
class Slice < ActiveResource::Base
API_KEY = 'MY API KEY GOES HERE'
self.site = %[https://#{API_KEY}@api.slicehost.com]
self.timeout = 600
end
slices = Slice.find :all
pp slices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment