module Dialogue
Constants
- VERSION
Public Class Methods
build(&block)
click to toggle source
# File lib/dialogue.rb, line 19 def build(&block) DSL.run block end
clear_conversations()
click to toggle source
# File lib/dialogue.rb, line 23 def clear_conversations conversation_factory.conversations.clear end
clear_templates()
click to toggle source
# File lib/dialogue.rb, line 27 def clear_templates template_factory.templates.clear end
conversation_registered?(user_id, channel_id)
click to toggle source
# File lib/dialogue.rb, line 31 def conversation_registered?(user_id, channel_id) conversation_factory.registered? user_id, channel_id end
conversations()
click to toggle source
# File lib/dialogue.rb, line 35 def conversations conversation_factory.conversations end
find_conversation(user_id, channel_id)
click to toggle source
# File lib/dialogue.rb, line 39 def find_conversation(user_id, channel_id) conversation_factory.find user_id, channel_id end
find_template(name)
click to toggle source
# File lib/dialogue.rb, line 43 def find_template(name) template_factory.find name end
register_conversation(conversation)
click to toggle source
# File lib/dialogue.rb, line 47 def register_conversation(conversation) conversation_factory.register conversation end
register_template(template)
click to toggle source
# File lib/dialogue.rb, line 51 def register_template(template) template_factory.register template end
template_registered?(name)
click to toggle source
# File lib/dialogue.rb, line 59 def template_registered?(name) template_factory.registered? name end
templates()
click to toggle source
# File lib/dialogue.rb, line 55 def templates template_factory.templates end
unregister_conversation(conversation)
click to toggle source
# File lib/dialogue.rb, line 63 def unregister_conversation(conversation) conversation_factory.unregister(conversation) end
Private Class Methods
conversation_factory()
click to toggle source
# File lib/dialogue.rb, line 69 def conversation_factory ConversationFactory.instance end
template_factory()
click to toggle source
# File lib/dialogue.rb, line 73 def template_factory TemplateFactory.instance end