Sha256: 5aab3f9bb458654c731880495347cbebfc7cbbca4bf57f1c1dfc15c720e957d3
Contents?: true
Size: 889 Bytes
Versions: 2
Compression:
Stored size: 889 Bytes
Contents
module Bcx module Resources # Bcx::Resources::Todo # Provides access to todolist resoource both at the client level and per-project # # Get todos for a todolist # GET /todolists/1.json # # todolist = client.todolists!(1) # todolist.todos.remaining # todolist.todos.completed # # Get a specific todo # GET /projects/1/todos/2.json # # client.projects(1).todos!(2) # # Create a todo # POST /projects/1/todolists/2/todos.json # # client.projects(1).todolists(2).todos.create!(content: 'Update copy text') # # Update a todo # PUT /projects/1/todos/2.json # # client.projects(1).todos(2).update!(completed: true) # # Delete a todo # DELETE /projects/1/todos/2.json # # client.projects(1).todos(2).delete! # class Todo < Rapidash::Base end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bcx-0.1.0 | lib/bcx/resources/todo.rb |
bcx-0.0.2 | lib/bcx/resources/todo.rb |