Sha256: c068a7443d551301a55cf5526abe3d7c54fe95d6fa984728ac8adc3ded8c67b4
Contents?: true
Size: 488 Bytes
Versions: 5
Compression:
Stored size: 488 Bytes
Contents
class Neo4j::Relationship module Wrapper def wrapper props.symbolize_keys! return self unless props.is_a?(Hash) && props.has_key?(Neo4j::Config.class_name_property) begin found_class = props[Neo4j::Config.class_name_property].constantize rescue NameError return self end wrapped_rel = found_class.new wrapped_rel.init_on_load(self, self._start_node_id, self._end_node_id, self.rel_type) wrapped_rel end end end
Version data entries
5 entries across 5 versions & 1 rubygems