Method: Neography::Rest::NodeLabels#add_label

Defined in:
lib/neography/rest/node_labels.rb

#add_label(id, label) ⇒ Object



22
23
24
25
26
27
28
29
30
# File 'lib/neography/rest/node_labels.rb', line 22

def add_label(id, label)
  options = {
    :body => (
      label
    ).to_json,
    :headers => json_content_type
  }
  @connection.post("/node/%{id}/labels"  % {:id => get_id(id)}, options)
end