Class: TrelloCli::Requests::MoveCard
- Inherits:
-
Object
- Object
- TrelloCli::Requests::MoveCard
- Includes:
- Shared
- Defined in:
- lib/trello_cli/requests/move_card.rb
Instance Method Summary collapse
-
#initialize ⇒ MoveCard
constructor
A new instance of MoveCard.
- #move(args) ⇒ Object
Methods included from Shared
#connect_to_trello, #key, #token
Constructor Details
#initialize ⇒ MoveCard
Returns a new instance of MoveCard.
7 8 9 |
# File 'lib/trello_cli/requests/move_card.rb', line 7 def initialize connect_to_trello end |
Instance Method Details
#move(args) ⇒ Object
11 12 13 14 15 |
# File 'lib/trello_cli/requests/move_card.rb', line 11 def move(args) card = Trello::Card.new 'id' => args[:card_id] list = Trello::List.find args[:list_id] JSON.parse(card.move_to_list list) end |