Class: NodeApiClient::Edit
- Inherits:
-
Object
- Object
- NodeApiClient::Edit
- Defined in:
- lib/dynalist/node_api_client.rb
Instance Method Summary collapse
-
#initialize(node) ⇒ Edit
constructor
A new instance of Edit.
- #to_query ⇒ Object
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_query ⇒ Object
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 |