Method: Graphcommons::Signal.node_create
- Defined in:
- lib/graphcommons.rb
.node_create(id, options) ⇒ Object
This signal type is used for creating nodes. All signals of this type must define a type and name key. type - name pairs must be unique.
Upon saving this signal, a new node id is created. The type of the node is matched with a predefined node type from the hub/graph. If the node type does not already exist, a node type is created.
Required options: :name, :type
289 290 291 292 |
# File 'lib/graphcommons.rb', line 289 def self.node_create id, [:action] = :node_create self._signal id, end |