Method: Neography::Node.create
- Defined in:
- lib/neography/node.rb
.create(props = nil, db = Neography::Rest.new) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/neography/node.rb', line 11 def self.create(props = nil, db = Neography::Rest.new) raise ArgumentError.new("syntax deprecated") if props.is_a?(Neography::Rest) node = self.new(db.create_node(props)) node.neo_server = db node end |