Class: RailsGraph::Commands::Builders::Databases

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_graph/commands/builders/databases.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.enrich(graph:, configuration:) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/rails_graph/commands/builders/databases.rb', line 7

def self.enrich(graph:, configuration:)
  return unless configuration.databases?

  new(graph: graph).enrich

  graph
end

Instance Method Details

#enrichObject



15
16
17
18
# File 'lib/rails_graph/commands/builders/databases.rb', line 15

def enrich
  build_databases_nodes
  build_tables_nodes
end