Sha256: 9ba8aa79ab58ba664ca5da3595e25089b99801b9755d0f8a63537e310ae6f06c

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

module Voog
  class API
    module Nodes

      # List nodes
      def nodes(params = {})
        get 'nodes', {query: params}
      end

      # Get a single node
      def node(id, params = {})
        get "nodes/#{id}", {query: params}
      end

      # Update a node
      def update_node(id, data)
        put "nodes/#{id}", data
      end

      # Reorder a node
      def move_node(node_id, params)
        put "nodes/#{node_id}/move", nil, {query: params}
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voog_api-0.0.7 lib/voog_api/api/nodes.rb