Sha256: f5fa88d3c85db8b198cad1c084ea851c99c2f89d5b51f94f25c91f4386483ba5
Contents?: true
Size: 433 Bytes
Versions: 1
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true module Redgraph class Edge attr_accessor :id, :src, :dest, :type, :properties def initialize(src: nil, dest: nil, type: nil, properties: {}) @src = src @dest = dest @type = type @properties = properties end def persisted? !id.nil? end def ==(other) super || other.instance_of?(self.class) && !id.nil? && other.id == id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redgraph-0.1.2 | lib/redgraph/edge.rb |