Top Level Namespace

Defined Under Namespace

Modules: Teapot

Instance Method Summary collapse

Instance Method Details

#get_empty_filterHash

Returns:

  • (Hash)


266
267
268
# File 'lib/tempest_db.rb', line 266

def get_empty_filter()
  Hash.new
end

#get_tempest_client(server = 'localhost', port = 10001) ⇒ Teapot::TempestDB::TempestClient

Parameters:

  • server (String) (defaults to: 'localhost')
  • port (Integer) (defaults to: 10001)

Returns:



261
262
263
# File 'lib/tempest_db.rb', line 261

def get_tempest_client(server = 'localhost', port = 10001)
  Teapot::TempestDB::TempestClient.new(server, port)
end

#make_node(type, id) ⇒ Teapot::TempestDB::Node

Parameters:

  • type (String)
  • id (String)

Returns:



279
280
281
# File 'lib/tempest_db.rb', line 279

def make_node(type, id)
  Teapot::TempestDB::Node.new({'type' => type, 'id' => id})
end

#node_to_pair(node) ⇒ Array

Parameters:

Returns:

  • (Array)


272
273
274
# File 'lib/tempest_db.rb', line 272

def node_to_pair(node)
  [node.type, node.id]
end