Sha256: c35e83d36b3b194fd5c99de7c7b428edb89a0df007a866fc60e9d8ae9750fd50

Contents?: true

Size: 386 Bytes

Versions: 10

Compression:

Stored size: 386 Bytes

Contents

module Neo4j
  module Rails
    module Identity

      def id
        _java_entity ? _java_entity.neo_id.to_s : nil
      end

      def neo_id
        _java_entity ? _java_entity.neo_id : nil
      end

      def getId
        new_record? ? nil : neo_id
      end

      def ==(other)
        new? ? self.__id__ == other.__id__ : _java_entity == (other)
      end


    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
neo4j-2.2.0-java lib/neo4j/rails/identity.rb
neo4j-2.2.0.rc1-java lib/neo4j/rails/identity.rb
neo4j-2.0.1-java lib/neo4j/rails/identity.rb
neo4j-2.0.0-java lib/neo4j/rails/identity.rb
neo4j-2.0.0.rc2-java lib/neo4j/rails/identity.rb
neo4j-2.0.0.rc1-java lib/neo4j/rails/identity.rb
neo4j-2.0.0.alpha.9-java lib/neo4j/rails/identity.rb
neo4j-2.0.0.alpha.8-java lib/neo4j/rails/identity.rb
neo4j-2.0.0.alpha.7-java lib/neo4j/rails/identity.rb
neo4j-2.0.0.alpha.6-java lib/neo4j/rails/identity.rb