Class: TrelloCli::Requests::ListCards
- Inherits:
-
Object
- Object
- TrelloCli::Requests::ListCards
- Includes:
- Shared
- Defined in:
- lib/trello_cli/requests/list_cards.rb
Instance Method Summary collapse
-
#initialize ⇒ ListCards
constructor
A new instance of ListCards.
- #list(args) ⇒ Object
Methods included from Shared
#connect_to_trello, #key, #token
Constructor Details
#initialize ⇒ ListCards
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 |