Class: Teems::Commands::Chats
- Includes:
- ChatsDisplay, ChatsParsing
- Defined in:
- lib/teems/commands/chats.rb
Overview
List recent chats
Constant Summary
Constants included from ChatsDisplay
Teems::Commands::ChatsDisplay::CHAT_TYPE_ICONS
Instance Attribute Summary
Attributes inherited from Base
#options, #positional_args, #runner
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(args, runner:) ⇒ Chats
constructor
A new instance of Chats.
Constructor Details
#initialize(args, runner:) ⇒ Chats
Returns a new instance of Chats.
88 89 90 91 |
# File 'lib/teems/commands/chats.rb', line 88 def initialize(args, runner:) @options = {} super end |
Instance Method Details
#execute ⇒ Object
93 94 95 96 97 98 99 100 101 |
# File 'lib/teems/commands/chats.rb', line 93 def execute result = return result if result auth_result = require_auth return auth_result if auth_result list_chats end |