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