Method: N4j::Relationship#initialize
- Defined in:
- lib/n4j/relationship.rb
#initialize(hsh) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/n4j/relationship.rb', line 15 def initialize(hsh) if N4j.neo4j_hash?(hsh) super(hsh) else opts = HashWithIndifferentAccess.new.merge(hsh) opts.each_pair do |k,v| send("#{k}=",v) if %w(start end data type).include?(k) end end end |