Class LiveJournal::Request::EditEvent
In: lib/livejournal/entry.rb
Parent: Req

Methods

new  

Public Class methods

To edit an entry, pass in a User and an Entry to this and run it. To delete an entry, pass in :delete => true as the third parameter. (In this case, the Entry object only needs its itemid filled in.)

The LiveJournal API for deletion is to "edit" an entry to have an empty event. To prevent accidentally deleting entries, if you pass in an entry with an empty event without passing the delete flag, this will raise the AccidentalDeleteError exception.

[Validate]