Class: NodeApiClient::Delete

Inherits:
Object
  • Object
show all
Defined in:
lib/dynalist/node_api_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Delete

Returns a new instance of Delete.



74
75
76
# File 'lib/dynalist/node_api_client.rb', line 74

def initialize(node)
  @node = node
end

Instance Method Details

#to_queryObject



78
79
80
81
82
83
# File 'lib/dynalist/node_api_client.rb', line 78

def to_query
  {
    action: "delete",
    node_id: @node.node_id
  }
end