Module EtherpadLite::Padded
In: lib/etherpad-lite/models/padded.rb

Methods for dealing with pads belonging to something. Both Instance and Group include this, as they each have pads. This will work with any object which has an instance method, returning an EtherpadLite Instance object.

Methods

create_pad   get_pad   pad  

Public Instance methods

Creates and returns a Pad with the given id.

Options:

text => ‘initial Pad text‘

Returns the Pad with the given id (presumed to already exist). Use this instead of Instance#pad when you know the Pad already exists; it will save an HTTP request.

Returns the Pad with the given id, creating it if it doesn‘t already exist. This requires an HTTP request, so if you know the Pad already exists, use Instance#get_pad instead.

[Validate]