Module: Fathom::NetworkBuilder

Defined in:
lib/fathom/roles/network_builder.rb

Overview

This is the role necessary for importing nodes, shaping graphs, adding edges, that sort of thing.

Instance Method Summary collapse

Instance Method Details

#from_hash(hash) ⇒ Object



5
6
7
8
# File 'lib/fathom/roles/network_builder.rb', line 5

def from_hash(hash)
  hash = serialize_hash(hash)
  attributes.merge!(hash)
end