Module: Delicious::Bookmarks::Methods::Delete

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

Instance Method Summary collapse

Instance Method Details

#delete(url) ⇒ Boolean

Deletes bookmark with given URL

Parameters:

  • url (String)

    Bookmark URL

Returns:

  • (Boolean)

    ‘true` on successful deletion, `false` otherwise



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

def delete(url)
  response = @client.connection.post '/v1/posts/delete', url: url
  code = response.body['result']['code']
  'done' == code
end