lib/neo4jr/direction.rb in neo4jr-simple-0.1.0 vs lib/neo4jr/direction.rb in neo4jr-simple-0.1.3

- old
+ new

@@ -1,7 +1,15 @@ module Neo4jr module Direction OUTGOING = org.neo4j.api.core.Direction::OUTGOING INCOMING = org.neo4j.api.core.Direction::INCOMING BOTH = org.neo4j.api.core.Direction::BOTH + + def self.from_string(value) + case value.upcase + when 'BOTH': return BOTH + when 'OUTGOING': return OUTGOING + when 'INCOMING': return INCOMING + end + end end end \ No newline at end of file