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

Methods

new   run  

Public Class methods

We support three different types of GetEvents:

We support one final option called :strict, which requires a bit of explanation.

Whenever LiveJournal adds new metadata to entries (such as the location field, which was introduced in 2006) it also exposes this metadata via the LJ protocol. However, ljrb can’t know about future metadata and doesn’t know how to handle it properly. Some metadata (like the current location) must be sent to the server to publish an entry correctly; others, like the last revision time, must not be.

Normally, when we see a new property we abort with a ProtocolException. If the object is constructed with :strict => false, we’ll skip over any new properties.

Public Instance methods

Returns either a single Entry or a hash of itemid => Entry, depending on the mode this was constructed with.

[Validate]