Class: Trello::Card
- Inherits:
-
Object
- Object
- Trello::Card
- Defined in:
- lib/patches/trello/card.rb
Instance Method Summary collapse
-
#in_done_column? ⇒ Boolean
Reopening the Trello::Card class to add a method detecting a card moved in a DONE column.
Instance Method Details
#in_done_column? ⇒ Boolean
Reopening the Trello::Card class to add a method detecting a card moved in a DONE column
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/patches/trello/card.rb', line 5 def in_done_column? list_name = "" begin list_name = list.name.strip rescue Trello::Error => e Trello::Logger.error("Cannot find column for card #{name}") end !!(list_name =~ /^DONE/i) end |