Skip to content

IntelliHome::Parser::Base

mudler edited this page Aug 19, 2014 · 3 revisions

NAME

IntelliHome::Parser::Base - Base class for IntelliHome parsers

DESCRIPTION

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.

METHODS

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

ATTRIBUTES

SEE ALSO

IntelliHome::Parser::Mongo, IntelliHome::Parser::SQLite

Clone this wiki locally