Module: Tredo
- Defined in:
- lib/tredo.rb,
lib/tredo/todo.rb,
lib/tredo/version.rb,
lib/tredo/restprovider.rb
Defined Under Namespace
Classes: RestProvider, Todo
Constant Summary
collapse
- VERSION =
"0.1.4"
Class Method Summary
collapse
Class Method Details
.create_todo(name, token = nil, key = nil) ⇒ Object
7
8
9
10
11
|
# File 'lib/tredo.rb', line 7
def self.create_todo(name, token = nil, key = nil)
restclient = RestProvider.new
todo = Todo.new(restclient, token, key)
todo.create_card(name)
end
|
.todo_lists(token = nil, key = nil) ⇒ Object
13
14
15
16
17
|
# File 'lib/tredo.rb', line 13
def self.todo_lists(token = nil, key = nil)
restclient = RestProvider.new
todo = Todo.new(restclient, token, key)
todo.lists
end
|
.todos_for_list(list_id, token = nil, key = nil) ⇒ Object
19
20
21
22
23
|
# File 'lib/tredo.rb', line 19
def self.todos_for_list(list_id, token = nil, key = nil)
restclient = RestProvider.new
todo = Todo.new(restclient, token, key)
todo.cards(list_id)
end
|