| Class | LiveJournal::Request::GetEvents |
| In: |
lib/livejournal/entry.rb
|
| Parent: | Req |
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.