Class: Lita::Handler::ChatRouter::Route

Inherits:
Struct
  • Object
show all
Defined in:
lib/lita/handler/chat_router.rb,
lib/lita/handler/chat_router.rb

Overview

A Struct representing a chat route defined by a handler.

Since:

  • 4.0.0

Instance Attribute Summary collapse

Instance Attribute Details

#callbackObject

Returns the value of attribute callback

Returns:

  • (Object)

    the current value of callback



12
13
14
# File 'lib/lita/handler/chat_router.rb', line 12

def callback
  @callback
end

#commandObject Also known as: command?

Returns the value of attribute command

Returns:

  • (Object)

    the current value of command



12
13
14
# File 'lib/lita/handler/chat_router.rb', line 12

def command
  @command
end

#extensionsObject

Returns the value of attribute extensions

Returns:

  • (Object)

    the current value of extensions



12
13
14
# File 'lib/lita/handler/chat_router.rb', line 12

def extensions
  @extensions
end

#helpObject

Returns the value of attribute help

Returns:

  • (Object)

    the current value of help



12
13
14
# File 'lib/lita/handler/chat_router.rb', line 12

def help
  @help
end

#patternObject

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



12
13
14
# File 'lib/lita/handler/chat_router.rb', line 12

def pattern
  @pattern
end

#required_groupsObject

Returns the value of attribute required_groups

Returns:

  • (Object)

    the current value of required_groups



12
13
14
# File 'lib/lita/handler/chat_router.rb', line 12

def required_groups
  @required_groups
end