Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cf8b1a2011
Fetching contributors…

Cannot retrieve contributors at this time

executable file 31 lines (26 sloc) 0.504 kb
# patches for cloudapp_api
module CloudApp
class Account
attr_reader :subscription_expires_at
end
class Drop
def slug
url.split(/\//).last
end
def self.find(id)
res = get "http://#{$domain}/#{id}"
res.ok? ? Drop.new(res) : bad_response(res)
end
attr_reader :source
end
class Multipart
def payload
{
:headers => {
"User-Agent" => "Ruby.CloudApp.API",
"Content-Type" => "multipart/form-data; boundary=#{boundary}"},
:body => @body
}
end
end
end
Jump to Line
Something went wrong with that request. Please try again.