Class: RTM::TMQL::Engine

Inherits:
Object
  • Object
show all
Defined in:
lib/rtm/tmql.rb

Overview

A TMQL Engine. Every TMQL-Engine for RTM must subclass this class.

Direct Known Subclasses

TMQL4JEngine

Class Method Summary collapse

Instance Method Summary collapse

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