Sha256: a8571054e81014df19f42e630171a0cdf45754929cf924895cc5ffce1aef0b49
Contents?: true
Size: 511 Bytes
Versions: 19
Compression:
Stored size: 511 Bytes
Contents
module Neo4j module Core class Relationship attr_reader :id, :type, :properties include Wrappable def initialize(id, type, properties) @id = id @type = type.to_sym unless type.nil? @properties = properties end class << self def from_url(url, properties = {}) id = url.split('/')[-1].to_i type = nil # unknown properties = properties new(id, type, properties) end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems