Class: RDBr::Web::DatabaseGraph

Inherits:
Object
  • Object
show all
Defined in:
lib/rdbr/web/database_graph.rb

Class Method Summary collapse

Class Method Details

.call(catalog) ⇒ Object



5
6
7
8
# File 'lib/rdbr/web/database_graph.rb', line 5

def call(catalog)
  @cache ||= {}.compare_by_identity
  @cache[catalog] ||= JSON.generate(build(catalog))
end