Module: Bcx
- Defined in:
- lib/bcx.rb,
lib/bcx/version.rb,
lib/bcx/client/http.rb,
lib/bcx/client/oauth.rb,
lib/bcx/configuration.rb,
lib/bcx/resources/todo.rb,
lib/bcx/response_error.rb,
lib/bcx/launchpad/oauth.rb,
lib/bcx/resources/access.rb,
lib/bcx/resources/person.rb,
lib/bcx/resources/comment.rb,
lib/bcx/resources/project.rb,
lib/bcx/resources/todolist.rb,
lib/bcx/resources/authorization.rb
Overview
## Todolists
Provides access to todolist resoource both at the client level and per-project
#### Get all todolists for a project ‘GET /projects/123/todolists.json`
client.projects(123).todolists!
#### Get all completed todolists for a project ‘GET /projects/1/todolists/completed.json`
client.projects(123).todolists.completed!
#### Get todolists for all projects ‘GET /todolists.json`
client.todolists!
#### Get completed todolists for all projects ‘GET /todolists/completed.json`
client.todolists.completed!
#### Get specific todolist including the todos ‘GET /projects/123/todolists/456.json`
client.projects(123).todolists!(456)
#### Create a new todolist ‘POST /projects/1/todolists.json`
client.projects(123).todolists.create!(name: 'My todolist', description: 'This is a todolist')
#### Update an existing todolist ‘PUT /projects/123/todolists/456.json`
client.projects(123).todolists(456).update!(name: 'Updated todolist')
#### Delete a todolist ‘DELETE /projects/123/todolists/456.json`
client.projects(123).todolists(456).delete!
Defined Under Namespace
Modules: Client, Launchpad, Resources Classes: Configuration, ResponseError
Constant Summary collapse
- VERSION =
"0.4.0"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Expose configuration block.
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
32 33 34 |
# File 'lib/bcx.rb', line 32 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Expose configuration block
36 37 38 39 |
# File 'lib/bcx.rb', line 36 def self.configure self.configuration ||= Configuration.new yield(configuration) end |