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