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

Version Path
neo4j-3.0.4 lib/neo4j/active_rel/rel_wrapper.rb
neo4j-3.0.3 lib/neo4j/active_rel/rel_wrapper.rb
neo4j-3.0.2 lib/neo4j/active_rel/rel_wrapper.rb
neo4j-3.0.1 lib/neo4j/active_rel/rel_wrapper.rb
neo4j-3.0.0 lib/neo4j/active_rel/rel_wrapper.rb