Module: Alephant::Sequencer

Defined in:
lib/alephant/sequencer.rb,
lib/alephant/sequencer/version.rb,
lib/alephant/sequencer/sequencer.rb,
lib/alephant/sequencer/sequence_table.rb

Defined Under Namespace

Classes: SequenceTable, Sequencer

Constant Summary collapse

VERSION =
"0.2.0"
@@sequence_tables =
{}

Class Method Summary collapse

Class Method Details

.create(table_name, ident, jsonpath = nil, keep_all = true) ⇒ Object



9
10
11
12
# File 'lib/alephant/sequencer.rb', line 9

def self.create(table_name, ident, jsonpath = nil, keep_all = true)
  @@sequence_tables[table_name] ||= SequenceTable.new(table_name)
  Sequencer.new(@@sequence_tables[table_name], ident, jsonpath, keep_all)
end