Module: Cockroach::Source

Defined in:
lib/cockroach/source.rb,
lib/cockroach/source/node.rb,
lib/cockroach/source/model.rb

Defined Under Namespace

Classes: Model, Node

Class Method Summary collapse

Class Method Details

.get_source(source_refs) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/cockroach/source.rb', line 7

def get_source source_refs
  if source_refs.is_a?(Hash) && source_refs.keys.include?('model')
    get_model source_refs
  else
    get_node source_refs
  end
end