Class: NodeApiClient::Edit

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

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Edit

Returns a new instance of Edit.



44
45
46
# File 'lib/dynalist/node_api_client.rb', line 44

def initialize(node)
  @node = node
end

Instance Method Details

#to_queryObject



48
49
50
51
52
53
# File 'lib/dynalist/node_api_client.rb', line 48

def to_query
  {
    action: "edit",
    node_id: @node.node_id
  }.merge(@node.attributes)
end