Class: AjaxChatPlugin

Inherits:
Object
  • Object
show all
Defined in:
lib/h2g_ajaxchat.rb

Instance Method Summary collapse

Constructor Details

#initialize(ac, settings = {}, debug: false) ⇒ AjaxChatPlugin

ac = ajaxchat object



29
30
31
# File 'lib/h2g_ajaxchat.rb', line 29

def initialize(ac, settings={}, debug: false)    
  @ac, @settings, @debug = ac, settings, debug
end

Instance Method Details

#applyObject

Customises the ajax chat html etc;



35
36
# File 'lib/h2g_ajaxchat.rb', line 35

def apply()
end

#messagesObject

messages from the plugin to be added to the chat timeline



40
41
42
# File 'lib/h2g_ajaxchat.rb', line 40

def messages()
  []
end

#on_newmessage(time, userid, username, msg) ⇒ Object

messages from the chat timeline



46
47
# File 'lib/h2g_ajaxchat.rb', line 46

def on_newmessage(time, userid, username, msg)
end