Module: CommandHandler
- Defined in:
- lib/advanced_ruby_command_handler.rb,
lib/advanced_ruby_command_handler/app/utils.rb,
lib/advanced_ruby_command_handler/app/command.rb
Overview
Represent the CommandHandler as a simply class
Defined Under Namespace
Modules: Utils Classes: Command
Class Method Summary collapse
-
.new(commands_dir: "commands", events_dir: "events", config_file: "config.yml") ⇒ AdvancedRubyCommandHandler::Client
The created client.
Instance Method Summary collapse
-
#new ⇒ AdvancedRubyCommandHandler::Client
The created client.
Class Method Details
.new(commands_dir: "commands", events_dir: "events", config_file: "config.yml") ⇒ AdvancedRubyCommandHandler::Client
Returns the created client.
16 17 18 |
# File 'lib/advanced_ruby_command_handler.rb', line 16 def self.new(commands_dir: "commands", events_dir: "events", config_file: "config.yml") AdvancedRubyCommandHandler::Client.new(:commands_dir => commands_dir, :events_dir => events_dir, :config_file => config_file) end |
Instance Method Details
#new ⇒ AdvancedRubyCommandHandler::Client
Returns the created client.
16 17 18 |
# File 'lib/advanced_ruby_command_handler.rb', line 16 def self.new(commands_dir: "commands", events_dir: "events", config_file: "config.yml") AdvancedRubyCommandHandler::Client.new(:commands_dir => commands_dir, :events_dir => events_dir, :config_file => config_file) end |