class LiveJournal::Request::PostEvent

Public Class Methods

new(user, entry) click to toggle source
Calls superclass method
# File lib/livejournal/entry.rb, line 276
def initialize(user, entry)
  super(user, 'postevent')
  entry.add_to_request @request
  @entry = entry
end

Public Instance Methods

run() click to toggle source

Post an #Entry as a new post. Fills in the itemid and anum fields on the #Entry, which are necessary for Entry#display_itemid and Entry#url.

Calls superclass method
# File lib/livejournal/entry.rb, line 285
def run
  super
  @entry.itemid = @result['itemid'].to_i
  @entry.anum = @result['anum'].to_i
end