Class EtherpadLite::Instance
In: lib/etherpad-lite/models/instance.rb
Parent: Object

A high-level interface to EtherpadLite::Client.

Methods

Included Modules

Padded

Attributes

client  [R]  Stores the EtherpadLite::Client object used to power this Instance

Public Class methods

Instantiate a new Etherpad Lite Instance. You may pass a full url or just a port number. The api key may be a string or a File object.

Public Instance methods

Returns, creating if necessary, a Author mapped to your foreign system‘s author

Options:

name => the Author‘s name

Creates a new Author. Optionally, you may pass the :mapper option your third party system‘s author id. This will allow you to find the Author again later using the same identifier as your foreign system.

Options:

mapper => your foreign author id

 name => the Author's name

Creates a new Group. Optionally, you may pass the :mapper option your third party system‘s group id. This will allow you to find your Group again later using the same identifier as your foreign system.

Options:

mapper => your foreign group id

Returns an Author with the given id (it is presumed to already exist).

Returns a Group with the given id (it is presumed to already exist).

Returns a Session (presumed to already exist).

Returns, creating if necessary, a Group mapped to your foreign system‘s group

Returns an array of all group IDs

Returns an array of all Group objects

Returns itself

Returns an array of all pad IDs

Returns an array of all Pad objects

[Validate]