Class: CloudApp::Drop

Inherits:
Object
  • Object
show all
Defined in:
lib/gloudapp/patches.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.find(id) ⇒ Object



9
10
11
12
# File 'lib/gloudapp/patches.rb', line 9

def self.find(id)
	res = get "http://#{$domain}/#{id}"
	res.ok? ? Drop.new(res) : bad_response(res)
end

Instance Method Details

#slugObject



5
6
7
# File 'lib/gloudapp/patches.rb', line 5

def slug
	url.split(/\//).last
end