From a547370f6972850e35cd09778f7e374feb8c16b1 Mon Sep 17 00:00:00 2001 From: Max De Marzi Date: Fri, 14 Jun 2013 15:28:31 -0500 Subject: [PATCH] make the relationship types properly --- lib/neography/rest/relationship_types.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/neography/rest/relationship_types.rb b/lib/neography/rest/relationship_types.rb index e98c977..faada08 100644 --- a/lib/neography/rest/relationship_types.rb +++ b/lib/neography/rest/relationship_types.rb @@ -1,10 +1,14 @@ module Neography class Rest - class RelationshipTypes < Properties + class RelationshipTypes extend Neography::Rest::Paths add_path :all, "/relationship/types" + def initialize(connection) + @connection = connection + end + def list @connection.get(all_path) end