Method: CloudApp::Drop.recover

Defined in:
lib/cloudapp/drop.rb

.recover(href) ⇒ CloudApp::Drop

Recover a drop from the trash.

Requires authentication.

Parameters:

  • href (String)

    href attribute of the drop

Returns:



148
149
150
151
# File 'lib/cloudapp/drop.rb', line 148

def self.recover(href)
  res = put href, {:body => {:deleted => true, :item => {:deleted_at => nil}}, :digest_auth => @@auth}
  res.ok? ? Drop.new(res) : bad_response(res)
end