Class: LinkedDataGraph

Inherits:
Object
  • Object
show all
Defined in:
lib/data_models/linked_data_graph.rb

Class Method Summary collapse

Class Method Details

.build(models) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/data_models/linked_data_graph.rb', line 3

def self.build(models)
   
 models.each do |model|
   graph = {}
   
   #graph[:models] = get_attributes_ponderations(models)
   graph[:assoc] = get_associations(model)
   
   generate_graph(graph,model) if !graph[:assoc].empty?
 end
end