Sha256: 012d186365cb4beee46be239cbe1055de12276ef49aedb08edeef9fc77971154

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 Bytes

Contents

module Neo4jr
  module Direction
    OUTGOING = org.neo4j.graphdb.Direction::OUTGOING
    INCOMING = org.neo4j.graphdb.Direction::INCOMING
    BOTH     = org.neo4j.graphdb.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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
neo4jr-simple-0.2.2 lib/neo4jr/direction.rb
neo4jr-simple-0.2.1 lib/neo4jr/direction.rb
neo4jr-simple-0.2.0 lib/neo4jr/direction.rb
neo4jr-simple-0.1.8 lib/neo4jr/direction.rb