Class: Bc3client::Client
- Inherits:
-
Object
- Object
- Bc3client::Client
- Defined in:
- lib/bc3client/client.rb
Instance Attribute Summary collapse
-
#basecamp ⇒ Object
Returns the value of attribute basecamp.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Client
constructor
A new instance of Client.
- #todo(project_id) ⇒ Object
- #todo_list(project_id) ⇒ Object
- #todo_set(project_id) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Client
Returns a new instance of Client.
13 14 15 16 |
# File 'lib/bc3client/client.rb', line 13 def initialize(*args) @args = args @basecamp = Bc3client::Basecamp.new(@args) end |
Instance Attribute Details
#basecamp ⇒ Object
Returns the value of attribute basecamp.
11 12 13 |
# File 'lib/bc3client/client.rb', line 11 def basecamp @basecamp end |
Instance Method Details
#todo(project_id) ⇒ Object
18 19 20 |
# File 'lib/bc3client/client.rb', line 18 def todo project_id Bc3client::ToDo.new Array.new(@args).push(project_id) end |
#todo_list(project_id) ⇒ Object
22 23 24 |
# File 'lib/bc3client/client.rb', line 22 def todo_list project_id Bc3client::ToDoList.new Array.new(@args).push(project_id) end |
#todo_set(project_id) ⇒ Object
26 27 28 |
# File 'lib/bc3client/client.rb', line 26 def todo_set project_id Bc3client::ToDoSet.new Array.new(@args).push(project_id) end |