lib/architect4r/model/node.rb in architect4r-0.3.4.2 vs lib/architect4r/model/node.rb in architect4r-0.4

- old
+ new

@@ -49,9 +49,14 @@ run_callbacks :initialize do parse_properties(properties) end end + def to_s + prop_data = @properties_data.collect { |key, value| "#{key}='#{value}'" }.join(' ') + "#<#{self.class.name}:#{object_id} id=#{id} #{prop_data} neo4j_uri='#{@raw_data['self']}'>" + end + # Create the document. Validation is enabled by default and will return # false if the document is not valid. If all goes well, the document will # be returned. def create(options = {}) run_callbacks :create do \ No newline at end of file