Class: TrelloCli::Requests::ListCards

Inherits:
Object
  • Object
show all
Includes:
Shared
Defined in:
lib/trello_cli/requests/list_cards.rb

Instance Method Summary collapse

Methods included from Shared

#connect_to_trello, #key, #token

Constructor Details

#initializeListCards

Returns a new instance of ListCards.



7
8
9
# File 'lib/trello_cli/requests/list_cards.rb', line 7

def initialize
  connect_to_trello
end

Instance Method Details

#list(args) ⇒ Object



11
12
13
14
15
# File 'lib/trello_cli/requests/list_cards.rb', line 11

def list(args)
  list = Trello::List.new 'idBoard' => args[:board_id],
                          'id'      => args[:list_id]
  list.cards
end