class Delicious::Post

Attributes

description[RW]
dt[RW]
extended[RW]
shared[RW]
tags[RW]
url[RW]

Public Instance Methods

delete() click to toggle source

Deletes this bookmark

@raise [Delicious::Error] if bookmark was not saved yet @return [Boolean] ‘true` upon successful deletion, `false` otherwise

# File lib/delicious/post.rb, line 30
def delete
  if persisted? && @delicious_client
    @delicious_client.bookmarks.delete url: url
  else
    fail 'Bookmark was not saved yet'
  end
end
tags=(t) click to toggle source
# File lib/delicious/post.rb, line 14
def tags=(t)
  @tags = if t.respond_to?(:to_str)
            t.split(',')
          else
            t || []
          end
end
to_s() click to toggle source
# File lib/delicious/post.rb, line 38
def to_s
  %Q(Delicious::Post(url: "#{url}", description: "#{description}", tags: #{tags}, extended: "#{extended}", dt: "#{dt}", shared: #{shared}))
end