Module: Trell::Client::Lists

Included in:
Trell::Client
Defined in:
lib/trell/client/lists.rb

Instance Method Summary collapse

Instance Method Details

#create_list(options = {}) ⇒ Object



8
9
10
# File 'lib/trell/client/lists.rb', line 8

def create_list(options = {})
  post 'lists', options
end

#delete_list(id, options = {}) ⇒ Object



20
21
22
# File 'lib/trell/client/lists.rb', line 20

def delete_list(id, options = {})
  delete "lists/#{id}", options
end

#list(id, options = {}) ⇒ Object



12
13
14
# File 'lib/trell/client/lists.rb', line 12

def list(id, options = {})
  get "lists/#{id}", options
end

#lists(board_id, options = {}) ⇒ Object



4
5
6
# File 'lib/trell/client/lists.rb', line 4

def lists(board_id, options = {})
  get "boards/#{board_id}/lists", options
end

#update_list(id, options = {}) ⇒ Object



16
17
18
# File 'lib/trell/client/lists.rb', line 16

def update_list(id, options = {})
  put "lists/#{id}", options
end