-
Notifications
You must be signed in to change notification settings - Fork 5
IntelliHome::Parser::Base
IntelliHome::Parser::Base - Base class for IntelliHome parsers
This object implement basic features for an IntelliHome parser, it's job is to dispatch the text trigger to the appropriate plugin. At build time it dynamically load the appropriate backend instance according to the value that was set in the configuration file.
IntelliHome::Parser::Base implements run_plugin() and node(), but require the implementation of detectTasks(), detectTriggers(), parse(), prepare().
-
run_plugin($name,$method,@attrs)
Run the plugin
$name
invoking the$method
method with@attrs
argument. The plugin name must be in the relative form (e.g. "Relay") -
node()
returns a new node object with an injected backend
-
Config
Give access to the loaded IntelliHome::Config
-
Plugins
Contains an HashRef of plugins instantiations where the keys represent the relative name of a plugin (e.g. "Relay")
-
event
Contains the Deeme event emitter instance used internally by plugins
-
Output
Contains the output interface, see IntelliHome::Interfaces::Interface,IntelliHome::Interfaces::Terminal, IntelliHome::Interfaces::Voice
-
Backend
Contains the loaded database backend specified in the configuration file