Sha256: ccb2ff30233bc3792a2197fdfe628ee29172bc1c417424e2843e06769e9cc050

Contents?: true

Size: 406 Bytes

Versions: 8

Compression:

Stored size: 406 Bytes

Contents

require 'active_graph/core/wrappable'

module ActiveGraph
  module Core
    module Node
      def props; properties; end
      # Perhaps we should deprecate this?
      def neo_id; id; end

      def ==(other)
        other.is_a?(Node) && neo_id == other.neo_id
      end

      def labels
        @labels ||= super
      end

      def properties
        @properties ||= super
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
activegraph-10.0.0.pre.beta.8 lib/active_graph/core/node.rb
activegraph-10.0.0.pre.beta.7 lib/active_graph/core/node.rb
activegraph-10.0.0.pre.beta.6 lib/active_graph/core/node.rb
activegraph-10.0.0.pre.beta.5 lib/active_graph/core/node.rb
activegraph-10.0.0.pre.beta.4 lib/active_graph/core/node.rb
activegraph-10.0.0.pre.beta.3 lib/active_graph/core/node.rb
activegraph-10.0.0.pre.beta.2 lib/active_graph/core/node.rb
activegraph-10.0.0.pre.beta.1 lib/active_graph/core/node.rb