Method: FGraph.get_id

Defined in:
lib/fgraph.rb

.get_id(id) ⇒ Object

Return ID if ID is a hash object



395
396
397
398
399
# File 'lib/fgraph.rb', line 395

def get_id(id)
  return unless id
  id = id['id'] || id[:id] if id.is_a?(Hash)
  id
end