Module: Delicious::Bundles::Methods::Delete

Extended by:
ActiveSupport::Concern
Included in:
Api
Defined in:
lib/delicious/bundles/methods/delete.rb

Instance Method Summary collapse

Instance Method Details

#delete(name) ⇒ Boolean

Delete bundle with given name

Parameters:

  • name (String)

    Bundle name

Returns:

  • (Boolean)

    ‘true` upon a successful deletion, `false` otherwise



14
15
16
17
18
# File 'lib/delicious/bundles/methods/delete.rb', line 14

def delete(name)
  response = @client.connection.post '/v1/tags/bundles/delete', bundle: name
  code = response.body['result']['code']
  'done' == code
end