Sha256: 1db77119558dd215adf432caec49e7e94bc1ee2b06f1426ed5e764b2c24894a6

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

module Voog
  class API
    module Nodes

      # List nodes
      def nodes(params = {})
        paginate '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.10 lib/voog_api/api/nodes.rb