class SevenBridges::Neo4jStore
Public Instance Methods
add_relationship(label, from, to)
click to toggle source
# File lib/seven_bridges/neo4j_store.rb, line 16 def add_relationship(label, from, to) from.public_send(label) << to end
create_method_node(method_name, path)
click to toggle source
# File lib/seven_bridges/neo4j_store.rb, line 12 def create_method_node(method_name, path) Method.create(name: method_name, path: path, type: 'app') end
create_test_method_node(method_name, path)
click to toggle source
# File lib/seven_bridges/neo4j_store.rb, line 8 def create_test_method_node(method_name, path) TestMethod.create(name: method_name, path: path, type: 'test') end
find_method(path)
click to toggle source
# File lib/seven_bridges/neo4j_store.rb, line 4 def find_method(path) Method.find_by(path: path) end