Method: CloudApp::Drop.update

Defined in:
lib/cloudapp/drop.rb

.update(href, opts = {}) ⇒ CloudApp::Drop

Modify a drop. Can currently modify it’s name or security setting by passing parameters.

Requires authentication.

Parameters:

  • href (String)

    href attribute of drop

  • opts (Hash) (defaults to: {})

    options paramaters

Options Hash (opts):

  • :name (String)

    for renaming the drop

  • :privacy (Boolean)

    set drop privacy

Returns:



125
126
127
128
# File 'lib/cloudapp/drop.rb', line 125

def self.update(href, opts = {})
  res = put href, {:body => {:item => opts}, :digest_auth => @@auth}
  res.ok? ? Drop.new(res) : bad_response(res)
end