Class: RTM::TMQL::Engine
- Inherits:
-
Object
- Object
- RTM::TMQL::Engine
- Defined in:
- lib/rtm/tmql.rb
Overview
A TMQL Engine. Every TMQL-Engine for RTM must subclass this class.
Direct Known Subclasses
Class Method Summary collapse
-
.create(topic_map, params = {}) ⇒ Object
Create a new TMQL-Engine.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Engine
constructor
A new instance of Engine.
Constructor Details
#initialize(params = {}) ⇒ Engine
Returns a new instance of Engine.
63 64 65 |
# File 'lib/rtm/tmql.rb', line 63 def initialize(params={}) @params = params end |
Class Method Details
.create(topic_map, params = {}) ⇒ Object
Create a new TMQL-Engine. For now, this is hard-coded to TMQL4J. Once there are more engines, this structure could be similar to RTM::Engine
59 60 61 |
# File 'lib/rtm/tmql.rb', line 59 def self.create(topic_map, params={}) TMQL4JEngine.new(topic_map, params) end |