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 =
"1.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Create configuration block in case the user does not call configure



36
37
38
39
# File 'lib/bcx.rb', line 36

def self.configuration
  self.class.instance_variable_set('@configuration',Configuration.new) if self.class.instance_variable_get('@configuration').nil?
  self.class.instance_variable_get('@configuration')
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Expose configuration block

Yields:



42
43
44
# File 'lib/bcx.rb', line 42

def self.configure
  yield(configuration)
end