Sha256: 3d1619170db04dab386cf777f6168f11bb8448f4a1c396155037e3ca0e6a23d6

Contents?: true

Size: 394 Bytes

Versions: 4

Compression:

Stored size: 394 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
neo4jr-simple-0.1.7 lib/neo4jr/direction.rb
neo4jr-simple-0.1.6 lib/neo4jr/direction.rb
neo4jr-simple-0.1.5 lib/neo4jr/direction.rb
neo4jr-simple-0.1.3 lib/neo4jr/direction.rb